Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 110.4 kB / 16.92 MB, free: 6.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000978/0.0009781, allocations: 48.64 kB / 300.7 MB, free: 5.691 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08955/0.09054, allocations: 49.44 MB / 350.2 MB, free: 4.238 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.01092/0.1015, allocations: 10.73 MB / 360.9 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007729/0.1093, allocations: 3.935 MB / 364.8 MB, free: 5.496 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001498/0.1108, allocations: 63.81 kB / 364.9 MB, free: 5.434 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004712/0.1156, allocations: 2.589 MB / 367.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004403/0.12, allocations: 1.755 MB / 369.2 MB, free: 1.074 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001571/0.1216, allocations: 0.6824 MB / 369.9 MB, free: 400 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1971/0.3187, allocations: 3.674 MB / 373.6 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009198/0.328, allocations: 3.563 MB / 377.2 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005593/0.3337, allocations: 1.483 MB / 378.6 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005372/0.3392, allocations: 1.953 MB / 380.6 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001609/0.3408, allocations: 313.6 kB / 380.9 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00451/0.3453, allocations: 1.166 MB / 382.1 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00364/0.349, allocations: 1.812 MB / 383.9 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005123/0.3542, allocations: 2.145 MB / 386 MB, free: 6.973 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008963/0.3631, allocations: 6.478 MB / 392.5 MB, free: 4.031 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.3632, allocations: 3.031 kB / 392.5 MB, free: 4.031 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3632, allocations: 0 / 392.5 MB, free: 4.031 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001873/0.3634, allocations: 0 / 392.5 MB, free: 4.031 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.008356/0.3718, allocations: 4.573 MB / 397.1 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.3718, allocations: 10.56 kB / 397.1 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007228/0.3726, allocations: 0.728 MB / 397.8 MB, free: 472 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006162/0.3787, allocations: 1.886 MB / 399.7 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004059/0.3828, allocations: 2.291 MB / 402 MB, free: 13.49 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001561/0.383, allocations: 250.5 kB / 402.2 MB, free: 13.28 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008254/0.3838, allocations: 396.5 kB / 402.6 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01596/0.3998, allocations: 10.06 MB / 412.7 MB, free: 2.352 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.75e-05/0.3999, allocations: 49.5 kB / 412.7 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003709/0.4003, allocations: 158.8 kB / 412.9 MB, free: 2.207 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002533/0.4028, allocations: 1.855 MB / 414.7 MB, free: 392 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01587/0.4187, allocations: 8.325 MB / 423.1 MB, free: 8.238 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04535/0.4641, allocations: 39.36 MB / 462.4 MB, free: 52 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01033/0.4745, allocations: 3.991 MB / 466.4 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002152/0.4767, allocations: 1.43 MB / 467.8 MB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01113/0.4878, allocations: 7.599 MB / 475.4 MB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.174e-05/0.4879, allocations: 55.48 kB / 475.5 MB, free: 2.383 MB / 382.1 MB Notification: Performance of pre-optimization done (n=152): time 4.96e-06/0.4879, allocations: 0 / 475.5 MB, free: 2.383 MB / 382.1 MB Notification: Performance of matching and sorting (n=159): time 0.03239/0.5203, allocations: 12.38 MB / 487.9 MB, free: 5.832 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001444/0.5218, allocations: 1.679 MB / 489.6 MB, free: 3.969 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00658/0.5284, allocations: 3.816 MB / 493.4 MB, free: 168 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003353/0.5287, allocations: 45.7 kB / 493.4 MB, free: 116 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00213/0.5309, allocations: 3.121 MB / 496.5 MB, free: 13 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007794/0.5317, allocations: 0.6501 MB / 497.2 MB, free: 12.36 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001652/0.5333, allocations: 1.252 MB / 498.4 MB, free: 11.09 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.5335, allocations: 301.1 kB / 498.7 MB, free: 10.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002889/0.5363, allocations: 2.007 MB / 0.489 GB, free: 8.785 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006257/0.5426, allocations: 5.939 MB / 0.4948 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009655/0.5523, allocations: 8.575 MB / 0.5032 GB, free: 6.371 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.26e-05/0.5524, allocations: 40 kB / 0.5032 GB, free: 6.332 MB / 430.1 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.01575/0.5682, allocations: 8.779 MB / 0.5118 GB, free: 13.54 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.632e-05/0.5683, allocations: 64 kB / 0.5119 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005591/0.5739, allocations: 2.796 MB / 0.5146 GB, free: 10.67 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004726/0.5786, allocations: 1.53 MB / 0.5161 GB, free: 9.121 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00374/0.5824, allocations: 1.368 MB / 0.5174 GB, free: 7.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005301/0.5877, allocations: 5.813 MB / 0.5231 GB, free: 1.637 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003795/0.5915, allocations: 383.4 kB / 0.5235 GB, free: 1.262 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004175/0.5919, allocations: 392 kB / 0.5238 GB, free: 0.8789 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[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 (738): * Single equations (assignments): 728 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * 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): 1 system {(6,29)} Notification: Performance of prepare postOptimizeDAE: time 0.1581/0.75, allocations: 2.007 MB / 0.5258 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000606/0.7506, allocations: 326.1 kB / 0.5261 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006595/0.7572, allocations: 3.125 MB / 0.5292 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005206/0.7624, allocations: 2.682 MB / 0.5318 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.365e-05/0.7625, allocations: 5.469 kB / 0.5318 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.248e-05/0.7625, allocations: 7.297 kB / 0.5318 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01515/0.7777, allocations: 8.558 MB / 0.5401 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.109e-05/0.7777, allocations: 3.906 kB / 0.5402 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008008/0.7785, allocations: 190.6 kB / 0.5403 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004078/0.7826, allocations: 1.44 MB / 0.5417 GB, free: 129.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001307/0.7827, allocations: 44.44 kB / 0.5418 GB, free: 129.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004839/0.7876, allocations: 6.01 MB / 0.5477 GB, free: 125.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000645/0.7883, allocations: 1.548 MB / 0.5492 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007211/0.7955, allocations: 5.308 MB / 0.5543 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006692/0.7962, allocations: 373.1 kB / 0.5547 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003376/0.7965, allocations: 27.06 kB / 0.5547 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001238/0.7978, allocations: 118.8 kB / 0.5548 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002296/0.798, allocations: 103 kB / 0.5549 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.731e-05/0.7981, allocations: 46.36 kB / 0.555 GB, free: 121.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002882/0.801, allocations: 2.345 MB / 0.5573 GB, free: 121 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.801, allocations: 2.188 kB / 0.5573 GB, free: 121 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003992/0.805, allocations: 1.006 MB / 0.5583 GB, free: 120.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($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]) * 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 (91): * Single equations (assignments): 83 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * 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): 1 system {(6,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006399/0.8114, allocations: 5.769 MB / 0.5639 GB, free: 117 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007612/0.819, allocations: 5.927 MB / 0.5697 GB, free: 111.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.8191, allocations: 0 / 0.5697 GB, free: 111.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00317/0.8222, allocations: 2.04 MB / 0.5717 GB, free: 109.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002125/0.8244, allocations: 394 kB / 0.572 GB, free: 109.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05242/0.8768, allocations: 50.29 MB / 0.6212 GB, free: 51.28 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002412/0.8793, allocations: 3.112 MB / 0.6242 GB, free: 48.13 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003536/0.8828, allocations: 1.8 MB / 0.626 GB, free: 46.32 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001772/0.8846, allocations: 1.765 MB / 0.6277 GB, free: 44.55 MB / 446.1 MB Notification: Performance of SimCode: time 1.412e-06/0.8846, allocations: 4 kB / 0.6277 GB, free: 44.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6607/1.545, allocations: 69.68 MB / 0.6957 GB, free: 7.297 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.48/23.03, allocations: 4 kB / 0.6957 GB, free: 7.293 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1)