Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001597/0.001597, allocations: 189 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.1/2.1, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001514/0.001514, allocations: 78.88 kB / 270.9 MB, free: 13.39 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.295/0.295, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005354/0.0005357, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.1368, allocations: 58.86 MB / 490.3 MB, free: 9.25 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.06331/0.2002, allocations: 36.65 MB / 0.5146 GB, free: 4.488 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.3611/0.5614, allocations: 9.115 MB / 0.5235 GB, free: 9.883 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008297/0.5698, allocations: 180.6 kB / 0.5237 GB, free: 9.883 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007179/0.577, allocations: 1.79 MB / 0.5254 GB, free: 9.883 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02195/0.599, allocations: 5.343 MB / 0.5307 GB, free: 9.793 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004067/0.6031, allocations: 0.662 MB / 0.5313 GB, free: 9.785 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.007125/0.6103, allocations: 2.514 MB / 0.5338 GB, free: 9.766 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009497/0.6199, allocations: 4.135 MB / 0.5378 GB, free: 8.598 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00312/0.623, allocations: 1.081 MB / 0.5389 GB, free: 8.402 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003851/0.6269, allocations: 1.517 MB / 0.5403 GB, free: 7.996 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001338/0.6283, allocations: 155.2 kB / 0.5405 GB, free: 7.992 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003224/0.6316, allocations: 0.7039 MB / 0.5412 GB, free: 7.828 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002962/0.6346, allocations: 1.602 MB / 0.5427 GB, free: 7.324 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001611/0.6363, allocations: 0.8325 MB / 0.5436 GB, free: 7.121 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00843/0.6447, allocations: 5.247 MB / 0.5487 GB, free: 4.297 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.6448, allocations: 0 / 0.5487 GB, free: 4.297 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.366e-06/0.6448, allocations: 1.75 kB / 0.5487 GB, free: 4.297 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002758/0.6451, allocations: 0 / 0.5487 GB, free: 4.297 MB / 362.7 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.012/0.6571, allocations: 4.054 MB / 0.5526 GB, free: 1.809 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.952e-05/0.6572, allocations: 8.031 kB / 0.5526 GB, free: 1.809 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002466/0.6596, allocations: 0.7372 MB / 0.5534 GB, free: 1.59 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0147/0.6744, allocations: 2.292 MB / 0.5556 GB, free: 0.5625 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008517/0.683, allocations: 2.788 MB / 0.5583 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003816/0.6834, allocations: 253.8 kB / 0.5586 GB, free: 15.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00188/0.6853, allocations: 327.8 kB / 0.5589 GB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03213/0.7175, allocations: 10.29 MB / 0.5689 GB, free: 6.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002426/0.7178, allocations: 51.48 kB / 0.569 GB, free: 6.609 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00116/0.7189, allocations: 160.4 kB / 0.5691 GB, free: 6.562 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005421/0.7244, allocations: 1.905 MB / 0.571 GB, free: 4.973 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02996/0.7544, allocations: 8.244 MB / 0.579 GB, free: 13.95 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07587/0.8303, allocations: 39.57 MB / 0.6177 GB, free: 5.43 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01958/0.85, allocations: 3.282 MB / 0.6209 GB, free: 1.98 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02422/0.8743, allocations: 5.977 MB / 0.6267 GB, free: 11.68 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.027e-05/0.8744, allocations: 59.48 kB / 0.6268 GB, free: 11.61 MB / 442.7 MB Notification: Performance of pre-optimization done (n=148): time 8.356e-06/0.8744, allocations: 1.75 kB / 0.6268 GB, free: 11.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=160): time 0.07745/0.9519, allocations: 9.824 MB / 0.6364 GB, free: 1.637 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001529/0.9521, allocations: 145.5 kB / 0.6365 GB, free: 1.465 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0178/0.9699, allocations: 4.289 MB / 0.6407 GB, free: 13.16 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003999/0.9704, allocations: 52.67 kB / 0.6408 GB, free: 13.1 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005381/0.9758, allocations: 3.115 MB / 0.6438 GB, free: 10 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001568/0.9775, allocations: 0.6399 MB / 0.6444 GB, free: 9.371 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008545/0.9784, allocations: 124 kB / 0.6445 GB, free: 9.25 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008051/0.9792, allocations: 0.5592 MB / 0.6451 GB, free: 8.68 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005361/0.9846, allocations: 1.612 MB / 0.6467 GB, free: 7.062 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008986/0.9936, allocations: 5.454 MB / 0.652 GB, free: 15.67 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007985/1.002, allocations: 2.905 MB / 0.6548 GB, free: 12.77 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001268/1.002, allocations: 43.94 kB / 0.6549 GB, free: 12.73 MB / 474.7 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.02031/1.022, allocations: 6.697 MB / 0.6614 GB, free: 6.023 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001368/1.022, allocations: 68.03 kB / 0.6615 GB, free: 5.957 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002553/1.023, allocations: 136 kB / 0.6616 GB, free: 5.824 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003119/1.023, allocations: 200 kB / 0.6618 GB, free: 5.629 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008562/1.032, allocations: 1.421 MB / 0.6632 GB, free: 4.207 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003316/1.032, allocations: 270.9 kB / 0.6634 GB, free: 3.941 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006058/1.038, allocations: 299.5 kB / 0.6637 GB, free: 3.648 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001177/1.039, allocations: 376 kB / 0.6641 GB, free: 3.281 MB / 474.7 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.005742/1.045, allocations: 2.04 MB / 0.6661 GB, free: 1.23 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009519/1.046, allocations: 351.5 kB / 0.6664 GB, free: 0.8828 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003927/1.05, allocations: 1.345 MB / 0.6677 GB, free: 15.52 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.846e-05/1.05, allocations: 16 kB / 0.6677 GB, free: 15.51 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.505e-05/1.05, allocations: 4 kB / 0.6677 GB, free: 15.5 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.203e-05/1.05, allocations: 7.969 kB / 0.6677 GB, free: 15.5 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01677/1.067, allocations: 5.849 MB / 0.6735 GB, free: 9.371 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.443e-05/1.067, allocations: 16.47 kB / 0.6735 GB, free: 9.355 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002/1.069, allocations: 275.5 kB / 0.6737 GB, free: 9.086 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.397e-05/1.069, allocations: 28 kB / 0.6738 GB, free: 9.059 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001466/1.069, allocations: 51.98 kB / 0.6738 GB, free: 9.008 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.929e-05/1.069, allocations: 37.94 kB / 0.6739 GB, free: 8.973 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.819e-05/1.069, allocations: 31.81 kB / 0.6739 GB, free: 8.941 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008007/1.077, allocations: 5.291 MB / 0.679 GB, free: 2.859 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00197/1.079, allocations: 0.5354 MB / 0.6796 GB, free: 2.301 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006998/1.08, allocations: 51.98 kB / 0.6796 GB, free: 2.25 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002079/1.082, allocations: 63.97 kB / 0.6797 GB, free: 2.188 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003262/1.082, allocations: 147.4 kB / 0.6798 GB, free: 2.043 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001707/1.083, allocations: 71.98 kB / 0.6799 GB, free: 1.973 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007488/1.09, allocations: 2.688 MB / 0.6825 GB, free: 15.27 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.012e-06/1.09, allocations: 0 / 0.6825 GB, free: 15.27 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.007547/1.098, allocations: 0.9287 MB / 0.6834 GB, free: 14.35 MB / 0.4949 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.01095/1.109, allocations: 10.15 MB / 0.6933 GB, free: 3.664 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01031/1.119, allocations: 3.723 MB / 0.697 GB, free: 15.96 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.302e-05/1.119, allocations: 6.188 kB / 0.697 GB, free: 15.96 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00206/1.121, allocations: 0.7484 MB / 0.6977 GB, free: 15.22 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003827/1.125, allocations: 446.6 kB / 0.6981 GB, free: 14.79 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3998/1.525, allocations: 114.6 MB / 0.81 GB, free: 83.15 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008383/1.533, allocations: 3.267 MB / 0.8132 GB, free: 82.34 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004436/1.538, allocations: 1.925 MB / 0.8151 GB, free: 80.98 MB / 0.5105 GB Notification: Performance of SimCode: time 1.573e-06/1.538, allocations: 0 / 0.8151 GB, free: 80.98 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.037/5.575, allocations: 76.04 MB / 0.8894 GB, free: 21.62 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring_res.mat does not exist to compare? outputFormat=mat