Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance",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.001592/0.001596, allocations: 183 kB / 16.4 MB, free: 5.754 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.086/2.086, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001176/0.001175, allocations: 98.08 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5271/0.5271, allocations: 43.55 MB / 362.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004971/0.0004973, allocations: 12 kB / 431.5 MB, free: 6.062 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1358, allocations: 58.85 MB / 490.3 MB, free: 11.12 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.3682/0.5041, allocations: 29 MB / 0.5071 GB, free: 29.95 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02123/0.5253, allocations: 7.542 MB / 0.5145 GB, free: 24.87 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007371/0.5328, allocations: 137.6 kB / 0.5146 GB, free: 24.85 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005504/0.5383, allocations: 1.405 MB / 0.516 GB, free: 24.39 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01732/0.5557, allocations: 4.303 MB / 0.5202 GB, free: 22.37 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003021/0.5588, allocations: 467.3 kB / 0.5206 GB, free: 22.2 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.033/0.5918, allocations: 13.77 MB / 0.5341 GB, free: 18.27 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005556/0.5974, allocations: 2.647 MB / 0.5367 GB, free: 17.22 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002457/0.6, allocations: 0.8267 MB / 0.5375 GB, free: 16.93 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003123/0.6031, allocations: 1.134 MB / 0.5386 GB, free: 16.59 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001025/0.6042, allocations: 111.2 kB / 0.5387 GB, free: 16.59 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003529/0.6078, allocations: 0.8903 MB / 0.5396 GB, free: 16.41 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00311/0.6109, allocations: 1.264 MB / 0.5408 GB, free: 16.02 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002302/0.6133, allocations: 0.6687 MB / 0.5415 GB, free: 15.55 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01179/0.6252, allocations: 4.532 MB / 0.5459 GB, free: 13.96 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.6252, allocations: 0 / 0.5459 GB, free: 13.96 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.507e-06/0.6253, allocations: 3.938 kB / 0.5459 GB, free: 13.96 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002278/0.6255, allocations: 1.219 kB / 0.5459 GB, free: 13.96 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.01467/0.6402, allocations: 3.396 MB / 0.5492 GB, free: 11.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.507e-05/0.6403, allocations: 10.34 kB / 0.5492 GB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002387/0.6427, allocations: 0.5734 MB / 0.5498 GB, free: 11.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.18/0.8227, allocations: 8.232 MB / 0.5578 GB, free: 5.273 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008236/0.831, allocations: 2.452 MB / 0.5602 GB, free: 2.758 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001679/0.8312, allocations: 172.3 kB / 0.5604 GB, free: 2.586 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001189/0.8324, allocations: 235.8 kB / 0.5606 GB, free: 2.355 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02038/0.8528, allocations: 7.852 MB / 0.5683 GB, free: 9.875 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001721/0.8531, allocations: 43.58 kB / 0.5683 GB, free: 9.832 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006113/0.8537, allocations: 111.9 kB / 0.5684 GB, free: 9.723 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005257/0.859, allocations: 1.668 MB / 0.57 GB, free: 8.051 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02202/0.881, allocations: 6.649 MB / 0.5765 GB, free: 1.398 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06013/0.9412, allocations: 31.3 MB / 0.6071 GB, free: 1.168 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00839/0.9497, allocations: 2.283 MB / 0.6093 GB, free: 14.73 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006099/0.9503, allocations: 331.8 kB / 0.6096 GB, free: 14.36 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.89e-05/0.9504, allocations: 43.12 kB / 0.6097 GB, free: 14.3 MB / 442.7 MB Notification: Performance of pre-optimization done (n=117): time 5.16e-06/0.9504, allocations: 0 / 0.6097 GB, free: 14.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=141): time 0.06452/1.015, allocations: 11.71 MB / 0.6211 GB, free: 2.414 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/1.015, allocations: 196.6 kB / 0.6213 GB, free: 2.18 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009709/1.025, allocations: 3.854 MB / 0.6251 GB, free: 14.33 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003493/1.025, allocations: 41.7 kB / 0.6251 GB, free: 14.29 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003321/1.029, allocations: 2.628 MB / 0.6277 GB, free: 11.62 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001171/1.03, allocations: 0.5594 MB / 0.6282 GB, free: 11.05 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006934/1.031, allocations: 108 kB / 0.6283 GB, free: 10.95 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004914/1.031, allocations: 0.538 MB / 0.6289 GB, free: 10.4 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005808/1.037, allocations: 1.677 MB / 0.6305 GB, free: 8.719 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009231/1.046, allocations: 5.091 MB / 0.6355 GB, free: 1.895 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007915/1.054, allocations: 2.875 MB / 0.6383 GB, free: 15.02 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001061/1.054, allocations: 40 kB / 0.6383 GB, free: 14.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.02032/1.075, allocations: 6.64 MB / 0.6448 GB, free: 8.336 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001124/1.075, allocations: 60 kB / 0.6449 GB, free: 8.277 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002131/1.075, allocations: 120 kB / 0.645 GB, free: 8.16 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001587/1.077, allocations: 421 kB / 0.6454 GB, free: 7.746 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007681/1.084, allocations: 1.24 MB / 0.6466 GB, free: 6.504 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006194/1.091, allocations: 3.139 MB / 0.6496 GB, free: 3.219 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005979/1.097, allocations: 295.3 kB / 0.6499 GB, free: 2.93 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001277/1.098, allocations: 336 kB / 0.6502 GB, free: 2.602 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (665): * Single equations (assignments): 661 * 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.005201/1.103, allocations: 1.778 MB / 0.652 GB, free: 0.8047 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008752/1.104, allocations: 311.9 kB / 0.6523 GB, free: 0.4961 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005831/1.11, allocations: 1.853 MB / 0.6541 GB, free: 14.62 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.607e-05/1.11, allocations: 19.95 kB / 0.6541 GB, free: 14.6 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/1.11, allocations: 0 / 0.6541 GB, free: 14.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.567e-05/1.11, allocations: 7.984 kB / 0.6541 GB, free: 14.59 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0177/1.128, allocations: 5.629 MB / 0.6596 GB, free: 8.883 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.531e-05/1.128, allocations: 0 / 0.6596 GB, free: 8.883 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002157/1.13, allocations: 220.3 kB / 0.6598 GB, free: 8.668 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001185/1.131, allocations: 224.7 kB / 0.66 GB, free: 8.445 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002142/1.131, allocations: 31.92 kB / 0.6601 GB, free: 8.414 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004862/1.136, allocations: 2.57 MB / 0.6626 GB, free: 5.715 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/1.136, allocations: 3.938 kB / 0.6626 GB, free: 5.711 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01087/1.147, allocations: 3.993 MB / 0.6665 GB, free: 1.664 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002203/1.149, allocations: 0.5515 MB / 0.667 GB, free: 1.09 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009961/1.151, allocations: 27.98 kB / 0.667 GB, free: 1.062 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002582/1.153, allocations: 71.84 kB / 0.6671 GB, free: 0.9922 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004849/1.154, allocations: 72.56 kB / 0.6672 GB, free: 0.9219 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001697/1.154, allocations: 39.98 kB / 0.6672 GB, free: 0.8828 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0071/1.161, allocations: 2.432 MB / 0.6696 GB, free: 14.46 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.71e-07/1.161, allocations: 0 / 0.6696 GB, free: 14.46 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006828/1.168, allocations: 0.832 MB / 0.6704 GB, free: 13.63 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (112): * Single equations (assignments): 108 * 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.01137/1.179, allocations: 4.934 MB / 0.6752 GB, free: 8.637 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01132/1.191, allocations: 4.07 MB / 0.6792 GB, free: 4.586 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/1.191, allocations: 0 / 0.6792 GB, free: 4.586 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00351/1.194, allocations: 1.146 MB / 0.6803 GB, free: 3.422 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002942/1.197, allocations: 351.8 kB / 0.6807 GB, free: 3.082 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.467/1.664, allocations: 112.4 MB / 0.7904 GB, free: 57.9 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006526/1.671, allocations: 2.834 MB / 0.7932 GB, free: 56.74 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004313/1.675, allocations: 1.552 MB / 0.7947 GB, free: 55.53 MB / 0.4948 GB Notification: Performance of SimCode: time 1.743e-06/1.675, allocations: 0 / 0.7947 GB, free: 55.53 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.457/6.132, allocations: 82.8 MB / 0.8756 GB, free: 142.7 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat