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.0007832/0.0007834, allocations: 96.16 kB / 17 MB, free: 6.402 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.0007937/0.0007937, allocations: 178.2 kB / 17.89 MB, free: 5.945 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.337/1.337, allocations: 223.3 MB / 241.9 MB, free: 332 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2014/0.2014, allocations: 44.23 MB / 337.2 MB, free: 2.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003085/0.0003085, allocations: 12.81 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1275, allocations: 61.93 MB / 471.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.03909/0.1667, allocations: 38.78 MB / 0.4985 GB, free: 6.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3048/0.4716, allocations: 8.742 MB / 0.507 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009518/0.4812, allocations: 185.7 kB / 0.5072 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008366/0.4896, allocations: 1.989 MB / 0.5091 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01919/0.5088, allocations: 6.021 MB / 0.515 GB, free: 9.699 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003396/0.5122, allocations: 0.6683 MB / 0.5157 GB, free: 9.684 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00873/0.521, allocations: 4.897 MB / 0.5204 GB, free: 9.043 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006744/0.5277, allocations: 4.145 MB / 0.5245 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003288/0.5311, allocations: 1.271 MB / 0.5257 GB, free: 7.285 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003387/0.5345, allocations: 2.086 MB / 0.5278 GB, free: 6.578 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006614/0.5351, allocations: 148 kB / 0.5279 GB, free: 6.578 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002022/0.5372, allocations: 0.74 MB / 0.5286 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00154/0.5387, allocations: 1.708 MB / 0.5303 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001042/0.5398, allocations: 0.827 MB / 0.5311 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004935/0.5447, allocations: 5.233 MB / 0.5362 GB, free: 2.762 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.5448, allocations: 0 / 0.5362 GB, free: 2.762 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.796e-06/0.5448, allocations: 4 kB / 0.5362 GB, free: 2.758 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002321/0.545, allocations: 1.594 kB / 0.5362 GB, free: 2.758 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.008152/0.5532, allocations: 4.032 MB / 0.5402 GB, free: 292 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.5532, allocations: 10.88 kB / 0.5402 GB, free: 292 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001416/0.5547, allocations: 0.7317 MB / 0.5409 GB, free: 68 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007325/0.562, allocations: 2.014 MB / 0.5428 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00653/0.5685, allocations: 2.901 MB / 0.5457 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002211/0.5688, allocations: 252.8 kB / 0.5459 GB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008733/0.5697, allocations: 327.9 kB / 0.5462 GB, free: 12.58 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02114/0.5908, allocations: 10.2 MB / 0.5562 GB, free: 4.266 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001548/0.591, allocations: 41.31 kB / 0.5562 GB, free: 4.227 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005277/0.5916, allocations: 165.4 kB / 0.5564 GB, free: 4.172 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002991/0.5946, allocations: 1.902 MB / 0.5582 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01865/0.6132, allocations: 8.125 MB / 0.5662 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04772/0.661, allocations: 39.41 MB / 0.6047 GB, free: 5.098 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007264/0.6683, allocations: 3.269 MB / 0.6079 GB, free: 1.664 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001552/0.6699, allocations: 1.055 MB / 0.6089 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008347/0.6782, allocations: 5.898 MB / 0.6146 GB, free: 10.38 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.9e-05/0.6783, allocations: 51.5 kB / 0.6147 GB, free: 10.32 MB / 462.1 MB Notification: Performance of pre-optimization done (n=148): time 3.827e-06/0.6783, allocations: 0 / 0.6147 GB, free: 10.32 MB / 462.1 MB Notification: Performance of matching and sorting (n=160): time 0.02203/0.7004, allocations: 9.437 MB / 0.6239 GB, free: 0.7891 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.7005, allocations: 141.5 kB / 0.624 GB, free: 0.6211 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006011/0.7065, allocations: 4.046 MB / 0.628 GB, free: 12.55 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002507/0.7068, allocations: 49.7 kB / 0.628 GB, free: 12.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002336/0.7092, allocations: 3.187 MB / 0.6312 GB, free: 9.328 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007815/0.71, allocations: 0.635 MB / 0.6318 GB, free: 8.699 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002238/0.7102, allocations: 123.9 kB / 0.6319 GB, free: 8.578 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003179/0.7105, allocations: 0.5583 MB / 0.6324 GB, free: 8.012 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002503/0.713, allocations: 1.612 MB / 0.634 GB, free: 6.395 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00521/0.7183, allocations: 5.465 MB / 0.6394 GB, free: 14.99 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004532/0.7228, allocations: 2.906 MB / 0.6422 GB, free: 12.09 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.345e-05/0.7229, allocations: 40 kB / 0.6422 GB, free: 12.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01275/0.7357, allocations: 6.82 MB / 0.6489 GB, free: 5.223 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.98e-05/0.7358, allocations: 67.95 kB / 0.649 GB, free: 5.156 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001425/0.736, allocations: 136 kB / 0.6491 GB, free: 5.023 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000176/0.7361, allocations: 200 kB / 0.6493 GB, free: 4.828 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00419/0.7403, allocations: 1.423 MB / 0.6507 GB, free: 3.402 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001992/0.7406, allocations: 267.4 kB / 0.6509 GB, free: 3.141 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003828/0.7444, allocations: 298.1 kB / 0.6512 GB, free: 2.852 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005416/0.745, allocations: 376 kB / 0.6516 GB, free: 2.484 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.003272/0.7482, allocations: 2.025 MB / 0.6535 GB, free: 456 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005665/0.7488, allocations: 347.5 kB / 0.6539 GB, free: 104 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002292/0.7511, allocations: 1.348 MB / 0.6552 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.184e-05/0.7512, allocations: 22.03 kB / 0.6552 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.7512, allocations: 0 / 0.6552 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.487e-05/0.7512, allocations: 9.797 kB / 0.6552 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009604/0.7608, allocations: 5.829 MB / 0.6609 GB, free: 8.605 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.452e-05/0.7609, allocations: 16 kB / 0.6609 GB, free: 8.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009885/0.7619, allocations: 279.5 kB / 0.6612 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.084e-05/0.7619, allocations: 28 kB / 0.6612 GB, free: 8.289 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.039e-05/0.762, allocations: 47.05 kB / 0.6613 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.092e-05/0.762, allocations: 35.86 kB / 0.6613 GB, free: 8.211 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-05/0.7621, allocations: 27.88 kB / 0.6613 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004617/0.7667, allocations: 3.265 MB / 0.6645 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001159/0.7679, allocations: 424.5 kB / 0.6649 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003097/0.7682, allocations: 47.98 kB / 0.665 GB, free: 4.184 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/0.7692, allocations: 63.97 kB / 0.665 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.7694, allocations: 151.3 kB / 0.6652 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/0.7695, allocations: 67.98 kB / 0.6652 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004027/0.7735, allocations: 2.492 MB / 0.6677 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.51e-07/0.7736, allocations: 2.078 kB / 0.6677 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004932/0.7785, allocations: 0.9044 MB / 0.6686 GB, free: 0.5 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.004912/0.7834, allocations: 3.939 MB / 0.6724 GB, free: 12.31 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007031/0.7905, allocations: 3.719 MB / 0.676 GB, free: 8.617 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.992e-05/0.7906, allocations: 4.188 kB / 0.676 GB, free: 8.613 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001193/0.7918, allocations: 0.7445 MB / 0.6768 GB, free: 7.871 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003128/0.7949, allocations: 460.6 kB / 0.6772 GB, free: 7.422 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05891/0.8539, allocations: 31.49 MB / 0.708 GB, free: 3.883 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003393/0.8573, allocations: 3.177 MB / 0.7111 GB, free: 0.6797 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.3122/1.17, allocations: 1.803 MB / 0.7128 GB, free: 162.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002679/1.172, allocations: 1.868 MB / 0.7146 GB, free: 162.4 MB / 0.545 GB Notification: Performance of SimCode: time 9.32e-07/1.172, allocations: 0 / 0.7146 GB, free: 162.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1506/1.323, allocations: 67.51 MB / 0.7806 GB, free: 117.7 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002092/1.323, allocations: 171.5 kB / 0.7807 GB, free: 117.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.825/5.149, allocations: 0 / 0.7807 GB, free: 117.5 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