Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001779/0.001779, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002448/0.002448, allocations: 211.7 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.465/1.465, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 47.92 kB / 377.7 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2479, allocations: 53.37 MB / 431.1 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01365/0.2616, allocations: 10.47 MB / 441.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009056/0.2706, allocations: 4.023 MB / 445.6 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001586/0.2722, allocations: 79.62 kB / 445.7 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005414/0.2776, allocations: 2.679 MB / 448.3 MB, free: 5.305 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00532/0.2829, allocations: 2 MB / 450.3 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001945/0.2849, allocations: 0.8112 MB / 451.1 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006947/0.2918, allocations: 4.678 MB / 455.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003919/0.2958, allocations: 2.933 MB / 458.8 MB, free: 10.81 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002777/0.2985, allocations: 1.705 MB / 460.5 MB, free: 9.098 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003612/0.3021, allocations: 2.383 MB / 462.8 MB, free: 6.707 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008435/0.303, allocations: 352 kB / 463.2 MB, free: 6.363 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0024/0.3054, allocations: 1.155 MB / 464.3 MB, free: 5.207 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002485/0.3079, allocations: 2.15 MB / 466.5 MB, free: 3.051 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002497/0.3104, allocations: 1.809 MB / 468.3 MB, free: 1.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009398/0.3198, allocations: 7.54 MB / 475.8 MB, free: 9.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.3198, allocations: 0 / 475.8 MB, free: 9.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3198, allocations: 0 / 475.8 MB, free: 9.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001859/0.32, allocations: 0 / 475.8 MB, free: 9.66 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.01258/0.3325, allocations: 5.323 MB / 481.2 MB, free: 4.277 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.3326, allocations: 12.03 kB / 481.2 MB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00148/0.3341, allocations: 0.7943 MB / 482 MB, free: 3.461 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008958/0.343, allocations: 2.225 MB / 484.2 MB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007211/0.3502, allocations: 2.882 MB / 487.1 MB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002793/0.3505, allocations: 282.8 kB / 487.4 MB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001263/0.3518, allocations: 427.6 kB / 487.8 MB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02478/0.3766, allocations: 12.34 MB / 0.4884 GB, free: 440 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000134/0.3767, allocations: 47.58 kB / 0.4884 GB, free: 392 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005155/0.3772, allocations: 175.8 kB / 0.4886 GB, free: 216 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003588/0.3808, allocations: 2.166 MB / 0.4907 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02371/0.4045, allocations: 10.22 MB / 0.5007 GB, free: 3.797 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2995/0.704, allocations: 42.48 MB / 0.5422 GB, free: 71.86 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01098/0.715, allocations: 3.837 MB / 0.5459 GB, free: 71.75 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002116/0.7171, allocations: 1.63 MB / 0.5475 GB, free: 71.64 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01095/0.728, allocations: 6.495 MB / 0.5539 GB, free: 69.17 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.603e-05/0.7281, allocations: 58.69 kB / 0.5539 GB, free: 69.12 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 6.041e-06/0.7281, allocations: 0 / 0.5539 GB, free: 69.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.03697/0.7651, allocations: 16.05 MB / 0.5696 GB, free: 57.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009573/0.766, allocations: 1.58 MB / 0.5711 GB, free: 56.18 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005016/0.771, allocations: 4.457 MB / 0.5755 GB, free: 51.88 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004072/0.7714, allocations: 53.7 kB / 0.5755 GB, free: 51.82 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001632/0.7731, allocations: 3.544 MB / 0.579 GB, free: 48.37 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006884/0.7738, allocations: 0.8406 MB / 0.5798 GB, free: 47.54 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001292/0.7751, allocations: 1.363 MB / 0.5812 GB, free: 46.17 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.958e-05/0.7751, allocations: 305.1 kB / 0.5815 GB, free: 45.87 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002785/0.7779, allocations: 2.247 MB / 0.5836 GB, free: 43.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004224/0.7821, allocations: 6.374 MB / 0.5899 GB, free: 35.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008324/0.7904, allocations: 9.288 MB / 0.5989 GB, free: 24.13 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001178/0.7906, allocations: 48 kB / 0.599 GB, free: 24.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01655/0.8071, allocations: 9.119 MB / 0.6079 GB, free: 14.95 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000145/0.8073, allocations: 68 kB / 0.608 GB, free: 14.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005279/0.8125, allocations: 2.868 MB / 0.6108 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003098/0.8156, allocations: 1.08 MB / 0.6118 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004685/0.8203, allocations: 1.579 MB / 0.6134 GB, free: 9.328 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003887/0.8242, allocations: 4.45 MB / 0.6177 GB, free: 4.645 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005085/0.8293, allocations: 431.5 kB / 0.6181 GB, free: 4.223 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001016/0.8303, allocations: 416 kB / 0.6185 GB, free: 3.816 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00374/0.834, allocations: 2.208 MB / 0.6207 GB, free: 1.602 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008971/0.8349, allocations: 397.3 kB / 0.621 GB, free: 1.211 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007042/0.842, allocations: 3.309 MB / 0.6243 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005997/0.848, allocations: 2.777 MB / 0.627 GB, free: 11.08 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.607e-05/0.848, allocations: 0 / 0.627 GB, free: 11.08 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.724e-05/0.848, allocations: 11.97 kB / 0.627 GB, free: 11.07 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02351/0.8715, allocations: 9.804 MB / 0.6366 GB, free: 1.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.895e-05/0.8716, allocations: 12 kB / 0.6366 GB, free: 1.008 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001598/0.8732, allocations: 371.4 kB / 0.6369 GB, free: 0.6445 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003159/0.8763, allocations: 0.9863 MB / 0.6379 GB, free: 15.64 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002646/0.8766, allocations: 63.97 kB / 0.638 GB, free: 15.58 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006004/0.8826, allocations: 4.691 MB / 0.6425 GB, free: 10.68 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001382/0.884, allocations: 1.461 MB / 0.644 GB, free: 9.09 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0114/0.8954, allocations: 5.976 MB / 0.6498 GB, free: 2.91 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001412/0.8968, allocations: 381.2 kB / 0.6502 GB, free: 2.535 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008557/0.8977, allocations: 59.98 kB / 0.6502 GB, free: 2.477 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002232/0.8999, allocations: 151.8 kB / 0.6504 GB, free: 2.328 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004871/0.9004, allocations: 188.3 kB / 0.6506 GB, free: 2.145 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000226/0.9006, allocations: 71.98 kB / 0.6506 GB, free: 2.074 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006919/0.9075, allocations: 2.59 MB / 0.6531 GB, free: 15.48 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.9075, allocations: 0 / 0.6531 GB, free: 15.48 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006923/0.9145, allocations: 1.117 MB / 0.6542 GB, free: 14.36 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01213/0.9266, allocations: 6.659 MB / 0.6607 GB, free: 7.492 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01222/0.9388, allocations: 5.596 MB / 0.6662 GB, free: 1.898 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.021e-05/0.9388, allocations: 0 / 0.6662 GB, free: 1.898 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004945/0.9438, allocations: 1.966 MB / 0.6681 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006027/0.9498, allocations: 0.5016 MB / 0.6686 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09801/1.048, allocations: 50.8 MB / 0.7182 GB, free: 5.723 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005839/1.054, allocations: 2.924 MB / 0.7211 GB, free: 2.762 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005293/1.059, allocations: 2.018 MB / 0.7231 GB, free: 0.7383 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00378/1.063, allocations: 2.096 MB / 0.7251 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of SimCode: time 1.633e-06/1.063, allocations: 0 / 0.7251 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.022/2.085, allocations: 73.61 MB / 0.797 GB, free: 203 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.89/19.97, allocations: 6.312 kB / 0.797 GB, free: 203 MB / 0.5762 GB " [Timeout remaining time 640] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --stepSize=0.0019992 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 22.545265706256032] Failed to read output from testmodel.py, exit status != 0: ['time', 'body1.frame_a.r_0[1]', 'body1.frame_a.r_0[2]', 'body1.frame_a.r_0[3]', 'body1.v_0[1]', 'body1.v_0[2]', 'body1.v_0[3]', 'body1.w_a[1]', 'body1.w_a[2]', 'body1.w_a[3]', 'p2.s', 'p2.v'] 20.141476552933455 20.151451009 19.829233674 Calling exit ...