Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance2",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.001441/0.001441, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.968/1.968, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 92.69 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3254/0.3254, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.998e-05/1.994e-05, allocations: 224 / 418.3 MB, free: 40.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3977/0.3977, allocations: 58.86 MB / 477.2 MB, free: 5.164 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1937/0.5915, allocations: 103.8 MB / 0.5674 GB, free: 11.36 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000283/0.5918, allocations: 79.95 kB / 0.5675 GB, free: 11.29 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6676/1.259, allocations: 77.7 MB / 0.6433 GB, free: 107.9 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.524e-06/1.26, allocations: 1.031 kB / 0.6433 GB, free: 107.9 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0002537/1.26, allocations: 66.92 kB / 0.6434 GB, free: 107.9 MB / 475.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01542/1.275, allocations: 3.547 MB / 0.6469 GB, free: 106.6 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.686e-05/1.275, allocations: 9.094 kB / 0.6469 GB, free: 106.6 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03456/1.31, allocations: 4.325 MB / 0.6511 GB, free: 106.4 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01853/1.328, allocations: 4.374 MB / 0.6554 GB, free: 105.8 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003114/1.329, allocations: 118.3 kB / 0.6555 GB, free: 105.8 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002077/1.331, allocations: 215.4 kB / 0.6557 GB, free: 105.8 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01437/1.345, allocations: 5.223 MB / 0.6608 GB, free: 105.8 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02148/1.367, allocations: 8.349 MB / 0.6689 GB, free: 103.2 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002397/1.367, allocations: 53.62 kB / 0.669 GB, free: 103.2 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001339/1.369, allocations: 29.47 kB / 0.669 GB, free: 103.2 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001723/1.37, allocations: 0.906 MB / 0.6699 GB, free: 103.2 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05318/1.423, allocations: 40.89 MB / 0.7098 GB, free: 72.79 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00392/1.427, allocations: 2.42 MB / 0.7122 GB, free: 71.24 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002008/1.43, allocations: 1.063 MB / 0.7132 GB, free: 70.78 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004686/1.43, allocations: 331.2 kB / 0.7136 GB, free: 70.48 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.311e-05/1.43, allocations: 43.03 kB / 0.7136 GB, free: 70.44 MB / 475.1 MB Notification: Performance of pre-optimization done (n=122): time 4.729e-06/1.43, allocations: 4 kB / 0.7136 GB, free: 70.43 MB / 475.1 MB Notification: Performance of matching and sorting (n=140): time 0.02744/1.458, allocations: 9.615 MB / 0.723 GB, free: 65.91 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.41e-05/1.458, allocations: 196.1 kB / 0.7232 GB, free: 65.69 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006452/1.464, allocations: 3.032 MB / 0.7261 GB, free: 64.49 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002961/1.464, allocations: 25.7 kB / 0.7262 GB, free: 64.46 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002478/1.467, allocations: 3.038 MB / 0.7291 GB, free: 62.02 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008332/1.468, allocations: 0.5544 MB / 0.7297 GB, free: 61.62 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006196/1.468, allocations: 0 / 0.7297 GB, free: 61.62 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0003961/1.469, allocations: 0.5719 MB / 0.7302 GB, free: 61.2 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003798/1.473, allocations: 1.558 MB / 0.7318 GB, free: 60.66 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006362/1.479, allocations: 5.535 MB / 0.7372 GB, free: 54.52 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006402/1.486, allocations: 2.939 MB / 0.74 GB, free: 53.4 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001546/1.486, allocations: 41.34 kB / 0.7401 GB, free: 53.4 MB / 475.1 MB Notification: Performance of matching and sorting (n=793) (initialization): time 0.0167/1.502, allocations: 6.216 MB / 0.7461 GB, free: 48.91 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001104/1.503, allocations: 64 kB / 0.7462 GB, free: 48.84 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002067/1.503, allocations: 144 kB / 0.7463 GB, free: 48.7 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001195/1.504, allocations: 377.3 kB / 0.7467 GB, free: 48.38 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008117/1.512, allocations: 1.403 MB / 0.7481 GB, free: 47.14 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003954/1.516, allocations: 2.635 MB / 0.7506 GB, free: 44.62 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006219/1.523, allocations: 194 kB / 0.7508 GB, free: 44.45 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001429/1.524, allocations: 387.3 kB / 0.7512 GB, free: 44.08 MB / 475.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 654 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (758): * Single equations (assignments): 754 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001374/1.525, allocations: 460.2 kB / 0.7516 GB, free: 43.63 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004554/1.53, allocations: 1.871 MB / 0.7535 GB, free: 41.98 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008072/1.531, allocations: 304.1 kB / 0.7537 GB, free: 41.68 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0042/1.535, allocations: 1.551 MB / 0.7553 GB, free: 40.38 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.177e-05/1.535, allocations: 16 kB / 0.7553 GB, free: 40.36 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/1.535, allocations: 4 kB / 0.7553 GB, free: 40.36 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.409e-05/1.535, allocations: 8.344 kB / 0.7553 GB, free: 40.36 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01429/1.55, allocations: 4.717 MB / 0.7599 GB, free: 36.45 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.731e-05/1.55, allocations: 0 / 0.7599 GB, free: 36.45 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001921/1.552, allocations: 205.8 kB / 0.7601 GB, free: 36.29 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008145/1.552, allocations: 157.3 kB / 0.7602 GB, free: 36.17 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002438/1.553, allocations: 15.75 kB / 0.7603 GB, free: 36.16 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002969/1.556, allocations: 2.056 MB / 0.7623 GB, free: 34.16 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.425e-06/1.556, allocations: 4 kB / 0.7623 GB, free: 34.16 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006354/1.562, allocations: 3.505 MB / 0.7657 GB, free: 30.93 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001758/1.564, allocations: 0.4995 MB / 0.7662 GB, free: 30.44 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005875/1.564, allocations: 7.938 kB / 0.7662 GB, free: 30.43 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001857/1.566, allocations: 38.25 kB / 0.7662 GB, free: 30.41 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002405/1.567, allocations: 78.7 kB / 0.7663 GB, free: 30.36 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001273/1.567, allocations: 40.11 kB / 0.7663 GB, free: 30.32 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.004015/1.571, allocations: 2.004 MB / 0.7683 GB, free: 28.59 MB / 475.1 MB Notification: Performance of sort global known variables: time 9.12e-07/1.571, allocations: 0 / 0.7683 GB, free: 28.59 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.006801/1.578, allocations: 0.7257 MB / 0.769 GB, free: 27.87 MB / 475.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 105 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007534/1.585, allocations: 4.586 MB / 0.7735 GB, free: 23.56 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.00813/1.593, allocations: 3.77 MB / 0.7772 GB, free: 20.13 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/1.593, allocations: 4.188 kB / 0.7772 GB, free: 20.13 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001875/1.595, allocations: 0.9601 MB / 0.7781 GB, free: 19.25 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002449/1.598, allocations: 293.1 kB / 0.7784 GB, free: 18.98 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02518/1.623, allocations: 7.747 MB / 0.786 GB, free: 12.26 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005997/1.629, allocations: 3.038 MB / 0.7889 GB, free: 9.332 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003855/1.633, allocations: 1.69 MB / 0.7906 GB, free: 7.641 MB / 475.1 MB Notification: Performance of SimCode: time 1.272e-06/1.633, allocations: 0 / 0.7906 GB, free: 7.641 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.542/6.175, allocations: 85.45 MB / 0.874 GB, free: 106.4 MB / 0.4952 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat