Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.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.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",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.001526/0.001531, allocations: 187.5 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.142/2.142, 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.001138/0.001138, allocations: 90.86 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.3/0.3, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004791/0.0004792, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1242, allocations: 58.86 MB / 490.3 MB, free: 9.246 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.03697/0.1612, allocations: 22.41 MB / 0.5007 GB, free: 2.762 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01836/0.1796, allocations: 6.158 MB / 0.5067 GB, free: 12.59 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004612/0.1843, allocations: 115.8 kB / 0.5068 GB, free: 12.48 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004353/0.1887, allocations: 1.166 MB / 0.508 GB, free: 11.3 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01295/0.2017, allocations: 3.148 MB / 0.511 GB, free: 8.148 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003144/0.2049, allocations: 0.5344 MB / 0.5116 GB, free: 7.613 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.005767/0.2107, allocations: 2.028 MB / 0.5135 GB, free: 5.582 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006291/0.2171, allocations: 2.829 MB / 0.5163 GB, free: 2.695 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002239/0.2194, allocations: 0.8525 MB / 0.5171 GB, free: 1.84 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002686/0.2221, allocations: 1.121 MB / 0.5182 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008787/0.223, allocations: 132 kB / 0.5184 GB, free: 0.5859 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002001/0.2251, allocations: 0.5188 MB / 0.5189 GB, free: 68 kB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.3362/0.5613, allocations: 1.374 MB / 0.5202 GB, free: 13.49 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001996/0.5634, allocations: 0.7934 MB / 0.521 GB, free: 13.46 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009875/0.5733, allocations: 4.962 MB / 0.5258 GB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.5734, allocations: 0 / 0.5258 GB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.257e-06/0.5734, allocations: 0 / 0.5258 GB, free: 13.11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.00028/0.5737, allocations: 2.281 kB / 0.5258 GB, free: 13.11 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: 1617 * Number of variables: 1617 Notification: Performance of Generate backend data structure: time 0.01231/0.586, allocations: 3.504 MB / 0.5293 GB, free: 11.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.957e-05/0.5861, allocations: 10.16 kB / 0.5293 GB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003235/0.5893, allocations: 0.7462 MB / 0.53 GB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02279/0.6122, allocations: 3.666 MB / 0.5336 GB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007292/0.6195, allocations: 1.838 MB / 0.5354 GB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003658/0.6199, allocations: 198.1 kB / 0.5356 GB, free: 10.49 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002222/0.6222, allocations: 257.6 kB / 0.5358 GB, free: 10.49 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02958/0.6518, allocations: 10.53 MB / 0.5461 GB, free: 7.551 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001712/0.652, allocations: 31.22 kB / 0.5461 GB, free: 7.551 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00181/0.6539, allocations: 135.3 kB / 0.5462 GB, free: 7.547 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006902/0.6608, allocations: 2.438 MB / 0.5486 GB, free: 7 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02695/0.6878, allocations: 9.361 MB / 0.5578 GB, free: 3.281 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08471/0.7726, allocations: 38.96 MB / 0.5958 GB, free: 13.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01079/0.7834, allocations: 3.52 MB / 0.5992 GB, free: 10 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01863/0.8021, allocations: 5.471 MB / 0.6046 GB, free: 4.434 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.538e-05/0.8022, allocations: 51.11 kB / 0.6046 GB, free: 4.375 MB / 410.7 MB Notification: Performance of pre-optimization done (n=153): time 7.424e-06/0.8023, allocations: 0 / 0.6046 GB, free: 4.375 MB / 410.7 MB Notification: Performance of matching and sorting (n=153): time 0.01449/0.8168, allocations: 3.857 MB / 0.6084 GB, free: 420 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/0.8169, allocations: 170.2 kB / 0.6086 GB, free: 216 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01171/0.8287, allocations: 3.939 MB / 0.6124 GB, free: 12.29 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004307/0.8292, allocations: 45.22 kB / 0.6125 GB, free: 12.24 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004437/0.8336, allocations: 3.305 MB / 0.6157 GB, free: 8.953 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001519/0.8352, allocations: 0.6192 MB / 0.6163 GB, free: 8.34 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001064/0.8363, allocations: 132 kB / 0.6164 GB, free: 8.211 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009234/0.8372, allocations: 0.5958 MB / 0.617 GB, free: 7.605 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006504/0.8438, allocations: 1.977 MB / 0.6189 GB, free: 5.625 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01136/0.8552, allocations: 6.261 MB / 0.625 GB, free: 13.29 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009648/0.8649, allocations: 3.523 MB / 0.6285 GB, free: 9.906 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001725/0.8651, allocations: 44 kB / 0.6285 GB, free: 9.863 MB / 442.7 MB Notification: Performance of matching and sorting (n=877) (initialization): time 0.0243/0.8894, allocations: 7.812 MB / 0.6362 GB, free: 2.43 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000151/0.8896, allocations: 72 kB / 0.6362 GB, free: 2.359 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003478/0.89, allocations: 152 kB / 0.6364 GB, free: 2.211 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003351/0.8904, allocations: 224 kB / 0.6366 GB, free: 1.992 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009806/0.9002, allocations: 1.505 MB / 0.638 GB, free: 496 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004034/0.9006, allocations: 307.5 kB / 0.6383 GB, free: 188 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007747/0.9084, allocations: 0.9485 MB / 0.6393 GB, free: 15.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001734/0.9102, allocations: 415.3 kB / 0.6397 GB, free: 14.82 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 698 * Number of states: 0 () * Number of discrete variables: 21 (freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.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 (819): * Single equations (assignments): 811 * Array equations: 8 * 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.007384/0.9176, allocations: 2.277 MB / 0.6419 GB, free: 12.53 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008903/0.9185, allocations: 316.5 kB / 0.6422 GB, free: 12.22 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001639/0.9202, allocations: 420.2 kB / 0.6426 GB, free: 11.81 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001299/0.9203, allocations: 43.5 kB / 0.6426 GB, free: 11.77 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-05/0.9204, allocations: 0 / 0.6426 GB, free: 11.77 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-05/0.9204, allocations: 7.766 kB / 0.6426 GB, free: 11.77 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01928/0.9397, allocations: 5.693 MB / 0.6482 GB, free: 5.965 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-05/0.9398, allocations: 8 kB / 0.6482 GB, free: 5.957 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002082/0.9419, allocations: 213.6 kB / 0.6484 GB, free: 5.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.407e-05/0.9419, allocations: 12.47 kB / 0.6484 GB, free: 5.738 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002244/0.9422, allocations: 28 kB / 0.6484 GB, free: 5.711 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-05/0.9422, allocations: 16.25 kB / 0.6485 GB, free: 5.695 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.191e-05/0.9422, allocations: 7.938 kB / 0.6485 GB, free: 5.688 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00633/0.9486, allocations: 3.259 MB / 0.6517 GB, free: 2.203 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001278/0.9499, allocations: 400.4 kB / 0.652 GB, free: 1.789 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009799/0.9509, allocations: 24 kB / 0.6521 GB, free: 1.766 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002238/0.9532, allocations: 67.28 kB / 0.6521 GB, free: 1.703 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004703/0.9537, allocations: 84.36 kB / 0.6522 GB, free: 1.621 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001923/0.9539, allocations: 44 kB / 0.6522 GB, free: 1.578 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007419/0.9613, allocations: 2.391 MB / 0.6546 GB, free: 15.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.41e-07/0.9614, allocations: 0 / 0.6546 GB, free: 15.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008123/0.9695, allocations: 1.135 MB / 0.6557 GB, free: 14.07 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 0 () * 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 (111): * Single equations (assignments): 105 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007941/0.9775, allocations: 5.382 MB / 0.6609 GB, free: 8.492 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01219/0.9897, allocations: 4.496 MB / 0.6653 GB, free: 4.031 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.762e-05/0.9898, allocations: 0 / 0.6653 GB, free: 4.031 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002564/0.9924, allocations: 0.9587 MB / 0.6663 GB, free: 3.074 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002848/0.9953, allocations: 344.5 kB / 0.6666 GB, free: 2.746 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4078/1.403, allocations: 124.8 MB / 0.7885 GB, free: 111 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007151/1.41, allocations: 3.365 MB / 0.7918 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004145/1.415, allocations: 1.807 MB / 0.7936 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of SimCode: time 1.543e-06/1.415, allocations: 0 / 0.7936 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.87/5.285, allocations: 77.35 MB / 0.8691 GB, free: 44.14 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat does not exist to compare? outputFormat=mat