Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring",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.000992/0.000992, allocations: 92.45 kB / 16.98 MB, free: 5.938 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.001129/0.001129, allocations: 186.3 kB / 17.88 MB, free: 5.594 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.421/1.421, allocations: 223.2 MB / 241.8 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1938/0.1938, allocations: 44.22 MB / 337.1 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003196/0.0003196, allocations: 12 kB / 409.6 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1377, allocations: 61.92 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.03568/0.1734, allocations: 36.62 MB / 0.4963 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.324/0.4975, allocations: 9.106 MB / 0.5051 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007853/0.5054, allocations: 182.4 kB / 0.5053 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008278/0.5137, allocations: 1.791 MB / 0.5071 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0205/0.5343, allocations: 5.342 MB / 0.5123 GB, free: 9.949 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003076/0.5373, allocations: 0.6617 MB / 0.5129 GB, free: 9.941 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005766/0.5431, allocations: 2.504 MB / 0.5154 GB, free: 9.922 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006849/0.55, allocations: 4.118 MB / 0.5194 GB, free: 9.242 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00257/0.5526, allocations: 1.069 MB / 0.5204 GB, free: 9.047 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002826/0.5555, allocations: 1.516 MB / 0.5219 GB, free: 8.695 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007795/0.5563, allocations: 151.2 kB / 0.5221 GB, free: 8.695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001987/0.5583, allocations: 0.712 MB / 0.5228 GB, free: 8.547 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001963/0.5603, allocations: 1.602 MB / 0.5243 GB, free: 8.207 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001512/0.5618, allocations: 0.8321 MB / 0.5251 GB, free: 8.176 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005771/0.5676, allocations: 5.223 MB / 0.5302 GB, free: 5.375 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.5676, allocations: 0 / 0.5302 GB, free: 5.375 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.5676, allocations: 0 / 0.5302 GB, free: 5.375 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002826/0.5679, allocations: 0 / 0.5302 GB, free: 5.375 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: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.009169/0.5771, allocations: 4.032 MB / 0.5342 GB, free: 2.906 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.5772, allocations: 11.09 kB / 0.5342 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001829/0.579, allocations: 0.7277 MB / 0.5349 GB, free: 2.691 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008237/0.5872, allocations: 2.292 MB / 0.5371 GB, free: 1.664 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00722/0.5945, allocations: 2.495 MB / 0.5396 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000242/0.5948, allocations: 254.6 kB / 0.5398 GB, free: 0.793 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001202/0.596, allocations: 326.7 kB / 0.5401 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01877/0.6148, allocations: 10.29 MB / 0.5502 GB, free: 9.578 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001288/0.6149, allocations: 45.59 kB / 0.5502 GB, free: 9.559 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004671/0.6154, allocations: 161 kB / 0.5504 GB, free: 9.508 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002847/0.6183, allocations: 1.909 MB / 0.5522 GB, free: 7.938 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01676/0.635, allocations: 8.231 MB / 0.5603 GB, free: 2.152 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04681/0.6819, allocations: 39.54 MB / 0.5989 GB, free: 12.62 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007882/0.6898, allocations: 3.278 MB / 0.6021 GB, free: 9.199 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009425/0.6993, allocations: 5.976 MB / 0.6079 GB, free: 2.91 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.612e-05/0.6993, allocations: 47.56 kB / 0.608 GB, free: 2.855 MB / 446.1 MB Notification: Performance of pre-optimization done (n=148): time 7.013e-06/0.6994, allocations: 6.516 kB / 0.608 GB, free: 2.852 MB / 446.1 MB Notification: Performance of matching and sorting (n=160): time 0.02417/0.7235, allocations: 9.715 MB / 0.6175 GB, free: 9.004 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/0.7237, allocations: 148 kB / 0.6176 GB, free: 8.832 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00618/0.7299, allocations: 4.259 MB / 0.6218 GB, free: 4.551 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000305/0.7302, allocations: 49.7 kB / 0.6218 GB, free: 4.496 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002841/0.733, allocations: 3.181 MB / 0.6249 GB, free: 1.332 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009689/0.734, allocations: 0.6326 MB / 0.6255 GB, free: 0.7031 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000269/0.7343, allocations: 126.8 kB / 0.6257 GB, free: 0.582 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003949/0.7347, allocations: 0.5583 MB / 0.6262 GB, free: 16 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002793/0.7375, allocations: 1.612 MB / 0.6278 GB, free: 14.4 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005829/0.7433, allocations: 5.443 MB / 0.6331 GB, free: 7.035 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004688/0.7481, allocations: 2.909 MB / 0.6359 GB, free: 4.141 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.129e-05/0.7482, allocations: 44 kB / 0.636 GB, free: 4.098 MB / 478.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01267/0.7608, allocations: 6.809 MB / 0.6426 GB, free: 13.29 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.249e-05/0.761, allocations: 64 kB / 0.6427 GB, free: 13.22 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001782/0.7612, allocations: 136.8 kB / 0.6428 GB, free: 13.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002004/0.7614, allocations: 200 kB / 0.643 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004581/0.766, allocations: 1.423 MB / 0.6444 GB, free: 11.47 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002345/0.7662, allocations: 278.9 kB / 0.6447 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004657/0.7709, allocations: 291.5 kB / 0.6449 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000731/0.7716, allocations: 377.6 kB / 0.6453 GB, free: 10.54 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (767): * Single equations (assignments): 764 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004084/0.7757, allocations: 2.044 MB / 0.6473 GB, free: 8.492 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007408/0.7765, allocations: 343.5 kB / 0.6476 GB, free: 8.152 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002485/0.779, allocations: 1.337 MB / 0.6489 GB, free: 6.797 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.893e-05/0.779, allocations: 16 kB / 0.6489 GB, free: 6.781 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.459e-05/0.779, allocations: 4 kB / 0.6489 GB, free: 6.777 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-05/0.7791, allocations: 15.92 kB / 0.649 GB, free: 6.762 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01334/0.7924, allocations: 5.823 MB / 0.6546 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.863e-05/0.7925, allocations: 20.98 kB / 0.6547 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001068/0.7936, allocations: 283.5 kB / 0.6549 GB, free: 376 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-05/0.7936, allocations: 32 kB / 0.655 GB, free: 344 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.085e-05/0.7937, allocations: 51.95 kB / 0.655 GB, free: 292 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.853e-05/0.7937, allocations: 31.92 kB / 0.655 GB, free: 260 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.785e-05/0.7938, allocations: 27.88 kB / 0.6551 GB, free: 232 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005947/0.7997, allocations: 5.279 MB / 0.6602 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00145/0.8012, allocations: 434.5 kB / 0.6606 GB, free: 9.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003914/0.8016, allocations: 51.19 kB / 0.6607 GB, free: 9.652 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001202/0.8028, allocations: 67.89 kB / 0.6608 GB, free: 9.586 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002209/0.803, allocations: 147.7 kB / 0.6609 GB, free: 9.441 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001105/0.8032, allocations: 71.95 kB / 0.661 GB, free: 9.371 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004654/0.8078, allocations: 2.676 MB / 0.6636 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3e-07/0.8078, allocations: 0 / 0.6636 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005733/0.8136, allocations: 0.9219 MB / 0.6645 GB, free: 5.762 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 78 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.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 (145): * Single equations (assignments): 142 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0082/0.8218, allocations: 10.14 MB / 0.6744 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007151/0.829, allocations: 3.722 MB / 0.678 GB, free: 7.398 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.835e-05/0.829, allocations: 8.375 kB / 0.678 GB, free: 7.391 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001122/0.8302, allocations: 0.7388 MB / 0.6787 GB, free: 6.656 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002484/0.8327, allocations: 435.1 kB / 0.6792 GB, free: 6.227 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.294/1.127, allocations: 114 MB / 0.7905 GB, free: 86.64 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004338/1.131, allocations: 3.26 MB / 0.7937 GB, free: 85.84 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004701/1.136, allocations: 1.822 MB / 0.7955 GB, free: 85.67 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002096/1.138, allocations: 1.869 MB / 0.7973 GB, free: 85.66 MB / 0.545 GB Notification: Performance of SimCode: time 1.112e-06/1.138, allocations: 0 / 0.7973 GB, free: 85.66 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09652/1.234, allocations: 67.51 MB / 0.8632 GB, free: 36.13 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001558/1.235, allocations: 175.5 kB / 0.8634 GB, free: 35.88 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.956/5.19, allocations: 0 / 0.8634 GB, free: 35.88 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_res.mat does not exist to compare? outputFormat=mat