Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001833/0.001833, allocations: 170.6 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 221.5 MB / 230.7 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000908/0.000908, allocations: 98.98 kB / 281.6 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2034/0.2034, allocations: 44.15 MB / 376.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.617e-05/1.62e-05, allocations: 224 / 444.7 MB, free: 15.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1224, allocations: 61.92 MB / 0.4948 GB, free: 1.172 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4241/0.5466, allocations: 105.6 MB / 0.5979 GB, free: 6.727 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002253/0.5469, allocations: 71.97 kB / 0.598 GB, free: 6.656 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1876/0.7345, allocations: 70.83 MB / 0.6671 GB, free: 15.34 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.7346, allocations: 0 / 0.6671 GB, free: 15.34 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001549/0.7348, allocations: 64 kB / 0.6672 GB, free: 15.27 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.009472/0.7443, allocations: 3.168 MB / 0.6703 GB, free: 12.05 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.7443, allocations: 11.98 kB / 0.6703 GB, free: 12.04 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02491/0.7692, allocations: 4.223 MB / 0.6744 GB, free: 7.801 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01369/0.783, allocations: 4.013 MB / 0.6783 GB, free: 3.723 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000168/0.7832, allocations: 103.9 kB / 0.6784 GB, free: 3.621 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001074/0.7843, allocations: 183.9 kB / 0.6786 GB, free: 3.441 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008229/0.7925, allocations: 4.459 MB / 0.683 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01242/0.805, allocations: 7.33 MB / 0.6901 GB, free: 6.695 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001365/0.8052, allocations: 55.47 kB / 0.6902 GB, free: 6.641 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000405/0.8056, allocations: 28 kB / 0.6902 GB, free: 6.613 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001037/0.8066, allocations: 0.7781 MB / 0.691 GB, free: 5.832 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4032/1.21, allocations: 37.47 MB / 0.7276 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003583/1.213, allocations: 2.24 MB / 0.7298 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001555/1.215, allocations: 1.013 MB / 0.7307 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004653/1.216, allocations: 323.4 kB / 0.731 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.658e-05/1.216, allocations: 54.55 kB / 0.7311 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=111): time 6.762e-06/1.216, allocations: 1.188 kB / 0.7311 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=135): time 0.02578/1.241, allocations: 9.942 MB / 0.7408 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.697e-05/1.242, allocations: 193.5 kB / 0.741 GB, free: 109 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005319/1.247, allocations: 2.751 MB / 0.7437 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002885/1.247, allocations: 27.45 kB / 0.7437 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002143/1.249, allocations: 2.666 MB / 0.7463 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007764/1.25, allocations: 0.5232 MB / 0.7468 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001677/1.25, allocations: 0 / 0.7468 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003666/1.251, allocations: 0.5349 MB / 0.7473 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002567/1.253, allocations: 1.493 MB / 0.7488 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004448/1.258, allocations: 4.943 MB / 0.7536 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003707/1.262, allocations: 2.713 MB / 0.7563 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.351e-05/1.262, allocations: 37.91 kB / 0.7563 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=707) (initialization): time 0.009274/1.271, allocations: 5.779 MB / 0.762 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.34e-05/1.271, allocations: 61.19 kB / 0.762 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001116/1.271, allocations: 125.7 kB / 0.7621 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006753/1.272, allocations: 349.7 kB / 0.7625 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003456/1.275, allocations: 1.244 MB / 0.7637 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002483/1.278, allocations: 2.616 MB / 0.7662 GB, free: 98.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004141/1.282, allocations: 181.1 kB / 0.7664 GB, free: 98.77 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006118/1.283, allocations: 345.1 kB / 0.7667 GB, free: 98.73 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 568 * Number of states: 0 () * Number of discrete variables: 29 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,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 () * 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.0007235/1.283, allocations: 408.3 kB / 0.7671 GB, free: 98.39 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00299/1.286, allocations: 1.907 MB / 0.769 GB, free: 97.67 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004508/1.287, allocations: 284.7 kB / 0.7693 GB, free: 97.52 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002414/1.289, allocations: 1.512 MB / 0.7707 GB, free: 96.93 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-05/1.289, allocations: 18.12 kB / 0.7708 GB, free: 96.93 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/1.289, allocations: 7.797 kB / 0.7708 GB, free: 96.93 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/1.289, allocations: 3.938 kB / 0.7708 GB, free: 96.93 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007818/1.297, allocations: 4.578 MB / 0.7752 GB, free: 95.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.396e-05/1.297, allocations: 2.75 kB / 0.7752 GB, free: 95.09 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009791/1.298, allocations: 198.5 kB / 0.7754 GB, free: 95.07 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004427/1.299, allocations: 161 kB / 0.7756 GB, free: 95.03 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.026e-05/1.299, allocations: 3.062 kB / 0.7756 GB, free: 95.03 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001807/1.3, allocations: 2.053 MB / 0.7776 GB, free: 93.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/1.301, allocations: 7.75 kB / 0.7776 GB, free: 93.48 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004107/1.305, allocations: 3.516 MB / 0.781 GB, free: 91.79 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/1.306, allocations: 329.4 kB / 0.7813 GB, free: 91.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003018/1.306, allocations: 9.922 kB / 0.7814 GB, free: 91.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/1.307, allocations: 40.69 kB / 0.7814 GB, free: 91.53 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/1.307, allocations: 74.5 kB / 0.7815 GB, free: 91.51 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.163e-05/1.307, allocations: 42.81 kB / 0.7815 GB, free: 91.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002787/1.31, allocations: 1.825 MB / 0.7833 GB, free: 90.82 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.91e-07/1.31, allocations: 0 / 0.7833 GB, free: 90.82 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005502/1.316, allocations: 0.6548 MB / 0.7839 GB, free: 90.82 MB / 0.5105 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 101 * 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.005273/1.321, allocations: 4.435 MB / 0.7883 GB, free: 88.33 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006345/1.327, allocations: 3.6 MB / 0.7918 GB, free: 87.03 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/1.327, allocations: 3.969 kB / 0.7918 GB, free: 87.03 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001153/1.329, allocations: 0.9897 MB / 0.7927 GB, free: 86.61 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001967/1.331, allocations: 281.7 kB / 0.793 GB, free: 86.48 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01528/1.346, allocations: 6.616 MB / 0.7995 GB, free: 83.07 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002344/1.348, allocations: 2.751 MB / 0.8022 GB, free: 80.93 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00407/1.352, allocations: 1.727 MB / 0.8039 GB, free: 79.86 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001666/1.354, allocations: 1.447 MB / 0.8053 GB, free: 78.52 MB / 0.5105 GB Notification: Performance of SimCode: time 1.562e-06/1.354, allocations: 0 / 0.8053 GB, free: 78.52 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09982/1.454, allocations: 56.46 MB / 0.8604 GB, free: 30.31 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002016/1.454, allocations: 129.2 kB / 0.8605 GB, free: 30.12 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.093/5.548, allocations: 4.031 kB / 0.8605 GB, free: 30.11 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat