Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.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.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2",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.0008489/0.0008489, allocations: 98.81 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.0008194/0.0008193, allocations: 177.5 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.339/1.339, allocations: 223.3 MB / 241.9 MB, free: 320 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.1963/0.1963, allocations: 44.23 MB / 337.2 MB, free: 2.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003345/0.0003345, allocations: 8 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1362, allocations: 61.92 MB / 471.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.03596/0.1722, allocations: 36.89 MB / 0.4966 GB, free: 8.641 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02126/0.1935, allocations: 8.38 MB / 0.5048 GB, free: 240 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00854/0.2021, allocations: 167.6 kB / 0.505 GB, free: 72 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.3035/0.5056, allocations: 1.907 MB / 0.5068 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01845/0.5241, allocations: 5.793 MB / 0.5125 GB, free: 9.906 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002774/0.5269, allocations: 0.4985 MB / 0.513 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03892/0.5658, allocations: 31.73 MB / 0.544 GB, free: 14.29 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00481/0.5707, allocations: 2.964 MB / 0.5468 GB, free: 12.15 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001994/0.5727, allocations: 1.005 MB / 0.5478 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00235/0.5751, allocations: 1.607 MB / 0.5494 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005015/0.5756, allocations: 112 kB / 0.5495 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001891/0.5775, allocations: 0.9202 MB / 0.5504 GB, free: 9.477 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001424/0.579, allocations: 1.414 MB / 0.5518 GB, free: 8.359 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007389/0.5797, allocations: 0.6864 MB / 0.5525 GB, free: 7.984 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004519/0.5842, allocations: 4.674 MB / 0.557 GB, free: 3.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.5843, allocations: 0 / 0.557 GB, free: 3.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5843, allocations: 3.938 kB / 0.557 GB, free: 3.906 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001339/0.5844, allocations: 0 / 0.557 GB, free: 3.906 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.007479/0.5919, allocations: 3.428 MB / 0.5604 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.592, allocations: 9.672 kB / 0.5604 GB, free: 0.707 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000997/0.593, allocations: 0.599 MB / 0.561 GB, free: 340 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06678/0.6597, allocations: 7.191 MB / 0.568 GB, free: 9.375 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00552/0.6653, allocations: 2.535 MB / 0.5705 GB, free: 7.398 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000131/0.6655, allocations: 178.9 kB / 0.5706 GB, free: 7.301 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005642/0.666, allocations: 245.1 kB / 0.5709 GB, free: 7.145 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01154/0.6776, allocations: 8.086 MB / 0.5788 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.579e-05/0.6777, allocations: 43.52 kB / 0.5788 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002779/0.678, allocations: 118 kB / 0.5789 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002735/0.6807, allocations: 1.711 MB / 0.5806 GB, free: 15.1 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01243/0.6932, allocations: 6.749 MB / 0.5872 GB, free: 10.26 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03608/0.7293, allocations: 32.18 MB / 0.6186 GB, free: 9.477 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004527/0.7339, allocations: 2.415 MB / 0.621 GB, free: 6.918 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001324/0.7352, allocations: 1.05 MB / 0.622 GB, free: 5.855 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003307/0.7356, allocations: 326.6 kB / 0.6223 GB, free: 5.484 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.88e-05/0.7356, allocations: 55.92 kB / 0.6223 GB, free: 5.422 MB / 462.1 MB Notification: Performance of pre-optimization done (n=104): time 2.816e-06/0.7356, allocations: 4 kB / 0.6224 GB, free: 5.418 MB / 462.1 MB Notification: Performance of matching and sorting (n=118): time 0.01992/0.7556, allocations: 8.457 MB / 0.6306 GB, free: 12.86 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.749e-05/0.7557, allocations: 188.5 kB / 0.6308 GB, free: 12.64 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005027/0.7607, allocations: 3.802 MB / 0.6345 GB, free: 8.848 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001874/0.7609, allocations: 41.7 kB / 0.6345 GB, free: 8.801 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001791/0.7627, allocations: 2.807 MB / 0.6373 GB, free: 6.012 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000474/0.7632, allocations: 0.4883 MB / 0.6378 GB, free: 5.527 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000201/0.7634, allocations: 108 kB / 0.6379 GB, free: 5.422 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000334/0.7638, allocations: 0.5334 MB / 0.6384 GB, free: 4.883 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002346/0.7661, allocations: 1.576 MB / 0.6399 GB, free: 3.301 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004185/0.7703, allocations: 5.188 MB / 0.645 GB, free: 12.29 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00359/0.7739, allocations: 2.809 MB / 0.6477 GB, free: 9.477 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-05/0.774, allocations: 36.19 kB / 0.6478 GB, free: 9.441 MB / 494.1 MB Notification: Performance of matching and sorting (n=707) (initialization): time 0.00982/0.7838, allocations: 6.657 MB / 0.6543 GB, free: 2.777 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.314e-05/0.7839, allocations: 61.64 kB / 0.6543 GB, free: 2.719 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001221/0.784, allocations: 135.9 kB / 0.6545 GB, free: 2.586 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008396/0.7849, allocations: 424.7 kB / 0.6549 GB, free: 2.168 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003131/0.788, allocations: 1.24 MB / 0.6561 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003314/0.7914, allocations: 3.103 MB / 0.6591 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003233/0.7946, allocations: 295.4 kB / 0.6594 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004494/0.7951, allocations: 344 kB / 0.6597 GB, free: 13.07 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.arrowLine.twoHeadedArrow,distance1.arrow.headAtOrigin,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (672): * Single equations (assignments): 668 * 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.002645/0.7977, allocations: 1.834 MB / 0.6615 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005421/0.7983, allocations: 312 kB / 0.6618 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002539/0.8008, allocations: 1.475 MB / 0.6632 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.439e-05/0.8009, allocations: 18.66 kB / 0.6633 GB, free: 9.418 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.8009, allocations: 0 / 0.6633 GB, free: 9.418 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.325e-05/0.8009, allocations: 11.97 kB / 0.6633 GB, free: 9.406 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00794/0.8088, allocations: 4.984 MB / 0.6681 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.8089, allocations: 0 / 0.6681 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007166/0.8096, allocations: 159.8 kB / 0.6683 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005998/0.8102, allocations: 224.7 kB / 0.6685 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.496e-05/0.8103, allocations: 17.97 kB / 0.6685 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002744/0.813, allocations: 2.527 MB / 0.671 GB, free: 1.332 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.813, allocations: 0 / 0.671 GB, free: 1.332 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004245/0.8173, allocations: 3.275 MB / 0.6742 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001101/0.8184, allocations: 372.9 kB / 0.6745 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003169/0.8187, allocations: 16 kB / 0.6746 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009606/0.8197, allocations: 51.94 kB / 0.6746 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.8199, allocations: 64.38 kB / 0.6747 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-05/0.82, allocations: 28 kB / 0.6747 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003763/0.8237, allocations: 2.363 MB / 0.677 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.71e-07/0.8238, allocations: 4.062 kB / 0.677 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004003/0.8278, allocations: 0.8002 MB / 0.6778 GB, free: 10.34 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * 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.00456/0.8323, allocations: 3.887 MB / 0.6816 GB, free: 6.418 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00611/0.8385, allocations: 3.827 MB / 0.6853 GB, free: 2.609 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.8385, allocations: 0 / 0.6853 GB, free: 2.609 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001379/0.8399, allocations: 0.9432 MB / 0.6862 GB, free: 1.656 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002184/0.8421, allocations: 376.7 kB / 0.6866 GB, free: 1.285 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2833/1.125, allocations: 28 MB / 0.7139 GB, free: 180.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005003/1.13, allocations: 2.807 MB / 0.7167 GB, free: 179.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005211/1.136, allocations: 1.712 MB / 0.7184 GB, free: 179.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002228/1.138, allocations: 1.526 MB / 0.7198 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.523e-06/1.138, allocations: 0 / 0.7198 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09051/1.228, allocations: 63.02 MB / 0.7814 GB, free: 123.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001397/1.229, allocations: 201.7 kB / 0.7816 GB, free: 122.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.066/5.295, allocations: 7.625 kB / 0.7816 GB, free: 122.9 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat