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.001462/0.001462, allocations: 93.88 kB / 16.3 MB, free: 5.656 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.001793/0.001793, allocations: 185.2 kB / 17.19 MB, free: 5.59 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.449/1.449, allocations: 223.2 MB / 241.1 MB, free: 328 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003497/0.0003497, allocations: 8.594 kB / 300.8 MB, free: 6.387 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1068, allocations: 50.4 MB / 351.2 MB, free: 3.973 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.2966/0.4034, allocations: 36.09 MB / 387.3 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03021/0.4337, allocations: 9.028 MB / 396.3 MB, free: 1.418 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01511/0.4489, allocations: 176.9 kB / 396.5 MB, free: 1.391 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008523/0.4574, allocations: 1.767 MB / 398.3 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02414/0.4816, allocations: 5.243 MB / 403.5 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004343/0.486, allocations: 0.5541 MB / 404.1 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005871/0.4919, allocations: 2.119 MB / 406.2 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00744/0.4994, allocations: 4.166 MB / 410.4 MB, free: 9.055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002431/0.5019, allocations: 0.9886 MB / 411.3 MB, free: 8.082 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001805/0.5037, allocations: 1.265 MB / 412.6 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004302/0.5041, allocations: 144 kB / 412.8 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002001/0.5061, allocations: 0.8777 MB / 413.6 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00143/0.5076, allocations: 1.484 MB / 415.1 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001116/0.5087, allocations: 0.8038 MB / 415.9 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00622/0.5149, allocations: 5.107 MB / 421 MB, free: 14.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.515, allocations: 0 / 421 MB, free: 14.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.515, allocations: 0 / 421 MB, free: 14.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002143/0.5152, allocations: 0 / 421 MB, free: 14.38 MB / 334.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.00782/0.523, allocations: 3.816 MB / 424.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/0.5231, allocations: 12.03 kB / 424.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001143/0.5242, allocations: 0.7234 MB / 425.6 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00752/0.5318, allocations: 2.217 MB / 427.8 MB, free: 7.516 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004851/0.5367, allocations: 2.055 MB / 429.8 MB, free: 5.414 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002045/0.5369, allocations: 246.2 kB / 430.1 MB, free: 5.172 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009193/0.5378, allocations: 395.7 kB / 430.5 MB, free: 4.785 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02025/0.5581, allocations: 10.17 MB / 440.6 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001304/0.5583, allocations: 43.67 kB / 440.7 MB, free: 9.852 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005218/0.5588, allocations: 155.9 kB / 440.8 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002807/0.5616, allocations: 1.853 MB / 442.7 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01761/0.5792, allocations: 8.433 MB / 451.1 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05074/0.63, allocations: 39.47 MB / 490.6 MB, free: 6.797 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01059/0.6407, allocations: 4.012 MB / 494.6 MB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01231/0.653, allocations: 7.685 MB / 0.4905 GB, free: 10.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.364e-05/0.6531, allocations: 51.5 kB / 0.4906 GB, free: 10.42 MB / 414.1 MB Notification: Performance of pre-optimization done (n=152): time 4.398e-06/0.6531, allocations: 0 / 0.4906 GB, free: 10.42 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.03533/0.6885, allocations: 12.65 MB / 0.5029 GB, free: 13.52 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001362/0.6899, allocations: 1.612 MB / 0.5045 GB, free: 11.74 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00553/0.6954, allocations: 3.906 MB / 0.5083 GB, free: 7.844 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000315/0.6958, allocations: 49.69 kB / 0.5084 GB, free: 7.789 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002089/0.6979, allocations: 3.111 MB / 0.5114 GB, free: 4.633 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000745/0.6986, allocations: 0.6521 MB / 0.512 GB, free: 3.973 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002331/0.6989, allocations: 124 kB / 0.5122 GB, free: 3.852 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003412/0.6992, allocations: 0.5625 MB / 0.5127 GB, free: 3.281 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002953/0.7022, allocations: 2.027 MB / 0.5147 GB, free: 1.25 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005198/0.7074, allocations: 5.942 MB / 0.5205 GB, free: 9.34 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004526/0.7119, allocations: 3.37 MB / 0.5238 GB, free: 5.969 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.896e-05/0.712, allocations: 40 kB / 0.5238 GB, free: 5.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.2316/0.9436, allocations: 9.692 MB / 0.5333 GB, free: 141.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001195/0.9438, allocations: 64.62 kB / 0.5333 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01241/0.9562, allocations: 3.763 MB / 0.537 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01204/0.9683, allocations: 2.64 MB / 0.5396 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004681/0.973, allocations: 1.358 MB / 0.5409 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009176/0.9822, allocations: 7.475 MB / 0.5482 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004566/0.9868, allocations: 404.4 kB / 0.5486 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007164/0.9875, allocations: 386.5 kB / 0.549 GB, free: 137.5 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 (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 32} Notification: Performance of prepare postOptimizeDAE: time 0.002824/0.9904, allocations: 2.01 MB / 0.5509 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004491/0.9908, allocations: 335.3 kB / 0.5513 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005602/0.9964, allocations: 3.139 MB / 0.5543 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004926/1.001, allocations: 2.681 MB / 0.5569 GB, free: 134.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.942e-05/1.001, allocations: 3.875 kB / 0.5569 GB, free: 134.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-05/1.001, allocations: 3.984 kB / 0.5569 GB, free: 134.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01602/1.018, allocations: 8.564 MB / 0.5653 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.209e-05/1.018, allocations: 3.828 kB / 0.5653 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008256/1.018, allocations: 191.7 kB / 0.5655 GB, free: 129.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003957/1.022, allocations: 1.432 MB / 0.5669 GB, free: 127.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001679/1.023, allocations: 33.14 kB / 0.5669 GB, free: 127.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004748/1.027, allocations: 5.783 MB / 0.5726 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000675/1.028, allocations: 1.469 MB / 0.574 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007322/1.035, allocations: 5.367 MB / 0.5792 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009836/1.036, allocations: 381.8 kB / 0.5796 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003487/1.037, allocations: 32 kB / 0.5796 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/1.038, allocations: 123.7 kB / 0.5798 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002254/1.038, allocations: 96.78 kB / 0.5799 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/1.038, allocations: 44.77 kB / 0.5799 GB, free: 114.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00293/1.041, allocations: 2.416 MB / 0.5823 GB, free: 111.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/1.041, allocations: 0 / 0.5823 GB, free: 111.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004855/1.046, allocations: 1.051 MB / 0.5833 GB, free: 110.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 (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {6 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.006903/1.053, allocations: 6.007 MB / 0.5891 GB, free: 104.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0082/1.061, allocations: 5.426 MB / 0.5944 GB, free: 99.35 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/1.061, allocations: 0 / 0.5944 GB, free: 99.35 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003263/1.065, allocations: 2.021 MB / 0.5964 GB, free: 97.26 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001882/1.067, allocations: 359.2 kB / 0.5968 GB, free: 96.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2863/1.353, allocations: 130.2 MB / 0.7239 GB, free: 147.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003538/1.356, allocations: 3.196 MB / 0.7271 GB, free: 146 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004158/1.361, allocations: 1.809 MB / 0.7288 GB, free: 145.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002107/1.363, allocations: 1.768 MB / 0.7306 GB, free: 144.4 MB / 462.1 MB Notification: Performance of SimCode: time 6.21e-07/1.363, allocations: 0 / 0.7306 GB, free: 144.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.105/1.468, allocations: 76.67 MB / 0.8054 GB, free: 71.53 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001412/1.468, allocations: 220.7 kB / 0.8056 GB, free: 71.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.902/5.369, allocations: 0 / 0.8056 GB, free: 71.3 MB / 462.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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat does not exist to compare? outputFormat=mat