Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Prismatic.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.Joints.Prismatic,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Prismatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Prismatic,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Prismatic",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.001583/0.001588, allocations: 186.7 kB / 16.4 MB, free: 5.625 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.078/2.078, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.001171/0.001171, allocations: 98.86 kB / 270.9 MB, free: 13.28 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.2943/0.2943, allocations: 43.56 MB / 362.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000502/0.0005021, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1229, allocations: 58.85 MB / 490.3 MB, free: 9.246 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Prismatic): time 0.04293/0.1659, allocations: 25.68 MB / 0.5039 GB, free: 15.49 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02013/0.186, allocations: 6.598 MB / 0.5103 GB, free: 8.871 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005475/0.1916, allocations: 115.8 kB / 0.5105 GB, free: 8.758 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004896/0.1965, allocations: 1.295 MB / 0.5117 GB, free: 7.457 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01731/0.2139, allocations: 3.943 MB / 0.5156 GB, free: 3.504 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002577/0.2165, allocations: 371.3 kB / 0.5159 GB, free: 3.141 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.005557/0.2221, allocations: 1.996 MB / 0.5179 GB, free: 1.145 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3662/0.5883, allocations: 2.255 MB / 0.5201 GB, free: 11.59 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003589/0.592, allocations: 0.8904 MB / 0.5209 GB, free: 11.59 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004636/0.5967, allocations: 1.254 MB / 0.5222 GB, free: 11.59 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001601/0.5984, allocations: 136.2 kB / 0.5223 GB, free: 11.59 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00406/0.6025, allocations: 0.632 MB / 0.5229 GB, free: 11.59 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003882/0.6065, allocations: 1.389 MB / 0.5243 GB, free: 11.59 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001935/0.6085, allocations: 0.7631 MB / 0.525 GB, free: 11.55 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00902/0.6175, allocations: 4.736 MB / 0.5296 GB, free: 11.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.6176, allocations: 0.5625 kB / 0.5296 GB, free: 11.2 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.317e-06/0.6176, allocations: 0 / 0.5296 GB, free: 11.2 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002839/0.6179, allocations: 0.5312 kB / 0.5296 GB, free: 11.2 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: 1557 * Number of variables: 1557 Notification: Performance of Generate backend data structure: time 0.01149/0.6294, allocations: 3.463 MB / 0.533 GB, free: 9.453 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.6295, allocations: 11.52 kB / 0.533 GB, free: 9.453 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002917/0.6324, allocations: 0.7166 MB / 0.5337 GB, free: 9.379 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02347/0.6559, allocations: 3.734 MB / 0.5374 GB, free: 8.219 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007215/0.6632, allocations: 2.148 MB / 0.5395 GB, free: 7.504 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003001/0.6635, allocations: 194.1 kB / 0.5397 GB, free: 7.496 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001892/0.6654, allocations: 255.8 kB / 0.5399 GB, free: 7.492 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02786/0.6933, allocations: 10.43 MB / 0.5501 GB, free: 4.812 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000169/0.6936, allocations: 28.34 kB / 0.5501 GB, free: 4.809 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001659/0.6952, allocations: 126.4 kB / 0.5502 GB, free: 4.805 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007163/0.7024, allocations: 2.557 MB / 0.5527 GB, free: 4.121 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02975/0.7322, allocations: 9.487 MB / 0.562 GB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0786/0.8109, allocations: 32.56 MB / 0.5938 GB, free: 14.81 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01058/0.8215, allocations: 3.377 MB / 0.5971 GB, free: 11.22 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001933/0.8235, allocations: 1.309 MB / 0.5984 GB, free: 9.695 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.73e-05/0.8236, allocations: 47.86 kB / 0.5984 GB, free: 9.641 MB / 410.7 MB Notification: Performance of pre-optimization done (n=187): time 6.462e-06/0.8236, allocations: 6.719 kB / 0.5984 GB, free: 9.637 MB / 410.7 MB Notification: Performance of matching and sorting (n=193): time 0.04129/0.8649, allocations: 10.32 MB / 0.6085 GB, free: 15.13 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.556e-05/0.8651, allocations: 98.41 kB / 0.6086 GB, free: 15.01 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00696/0.8721, allocations: 2.766 MB / 0.6113 GB, free: 12.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003905/0.8725, allocations: 53.33 kB / 0.6113 GB, free: 12.18 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00319/0.8757, allocations: 2.74 MB / 0.614 GB, free: 9.445 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001281/0.877, allocations: 0.7108 MB / 0.6147 GB, free: 8.742 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006492/0.8777, allocations: 96 kB / 0.6148 GB, free: 8.648 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005906/0.8783, allocations: 0.5216 MB / 0.6153 GB, free: 8.117 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004907/0.8833, allocations: 1.536 MB / 0.6168 GB, free: 6.574 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008432/0.8918, allocations: 4.435 MB / 0.6211 GB, free: 0.7461 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007267/0.8991, allocations: 2.632 MB / 0.6237 GB, free: 14.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000112/0.8993, allocations: 28 kB / 0.6237 GB, free: 14.17 MB / 442.7 MB Notification: Performance of matching and sorting (n=657) (initialization): time 0.01757/0.9168, allocations: 5.827 MB / 0.6294 GB, free: 8.352 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.917, allocations: 51.98 kB / 0.6295 GB, free: 8.301 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001751/0.9172, allocations: 108.8 kB / 0.6296 GB, free: 8.195 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005736/0.9178, allocations: 186.8 kB / 0.6298 GB, free: 8.012 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006902/0.9247, allocations: 1.096 MB / 0.6308 GB, free: 6.914 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002375/0.9271, allocations: 1.708 MB / 0.6325 GB, free: 5.078 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004707/0.9319, allocations: 219.8 kB / 0.6327 GB, free: 4.863 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001074/0.933, allocations: 300 kB / 0.633 GB, free: 4.57 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * Number of states: 0 () * Number of discrete variables: 27 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (605): * Single equations (assignments): 598 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006265/0.9393, allocations: 2.027 MB / 0.635 GB, free: 2.531 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006638/0.9399, allocations: 248.7 kB / 0.6352 GB, free: 2.285 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007244/0.9472, allocations: 2.53 MB / 0.6377 GB, free: 15.73 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.935e-05/0.9473, allocations: 20 kB / 0.6377 GB, free: 15.71 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.9473, allocations: 8 kB / 0.6377 GB, free: 15.71 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.763e-05/0.9474, allocations: 3.984 kB / 0.6377 GB, free: 15.7 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02481/0.9722, allocations: 8.163 MB / 0.6457 GB, free: 7.375 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.653e-05/0.9723, allocations: 12 kB / 0.6457 GB, free: 7.363 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002227/0.9745, allocations: 255.5 kB / 0.6459 GB, free: 7.113 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002809/0.9748, allocations: 60.83 kB / 0.646 GB, free: 7.051 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002692/0.9751, allocations: 40 kB / 0.646 GB, free: 7.012 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002125/0.9772, allocations: 1.529 MB / 0.6475 GB, free: 5.352 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.89e-05/0.9773, allocations: 19.06 kB / 0.6475 GB, free: 5.336 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01043/0.9877, allocations: 4.89 MB / 0.6523 GB, free: 44 kB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00203/0.9898, allocations: 0.5055 MB / 0.6528 GB, free: 15.52 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007275/0.9906, allocations: 39.98 kB / 0.6529 GB, free: 15.48 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001655/0.9923, allocations: 55.95 kB / 0.6529 GB, free: 15.42 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003989/0.9927, allocations: 120.7 kB / 0.653 GB, free: 15.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002279/0.9929, allocations: 71.58 kB / 0.6531 GB, free: 15.24 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004612/0.9976, allocations: 1.694 MB / 0.6547 GB, free: 13.54 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.92e-07/0.9976, allocations: 0 / 0.6547 GB, free: 13.54 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006319/1.004, allocations: 0.832 MB / 0.6556 GB, free: 12.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 44 * Number of states: 2 (prismatic.s,prismatic.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 (141): * Single equations (assignments): 134 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01249/1.016, allocations: 8.182 MB / 0.6635 GB, free: 4.199 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01024/1.027, allocations: 3.858 MB / 0.6673 GB, free: 356 kB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.385e-05/1.027, allocations: 0.5 kB / 0.6673 GB, free: 356 kB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003352/1.03, allocations: 1.243 MB / 0.6685 GB, free: 15.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00253/1.033, allocations: 314.4 kB / 0.6688 GB, free: 14.79 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.415/1.448, allocations: 96.19 MB / 0.7628 GB, free: 145.8 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007725/1.456, allocations: 3.288 MB / 0.766 GB, free: 144.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004813/1.46, allocations: 1.8 MB / 0.7677 GB, free: 143.1 MB / 0.5105 GB Notification: Performance of SimCode: time 3.246e-06/1.461, allocations: 0 / 0.7677 GB, free: 143.1 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.107/5.568, allocations: 86.9 MB / 0.8526 GB, free: 62.9 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Prismatic.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Prismatic.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Prismatic.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Prismatic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Prismatic_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Prismatic_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Prismatic.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Prismatic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Prismatic_res.mat does not exist to compare? outputFormat=mat