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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 179.7 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, allocations: 221.3 MB / 236 MB, free: 2.965 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.001213/0.001213, allocations: 99.72 kB / 287 MB, free: 240 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2189/0.2189, allocations: 44.15 MB / 382 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.926e-05/4.925e-05, allocations: 7.938 kB / 451.9 MB, free: 9.324 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1819/0.182, allocations: 61.91 MB / 0.5018 GB, free: 11.35 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5168/0.6988, allocations: 105.7 MB / 0.605 GB, free: 15.51 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002886/0.6992, allocations: 79.95 kB / 0.6051 GB, free: 15.43 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2044/0.9036, allocations: 75.85 MB / 0.6792 GB, free: 3.094 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.667e-06/0.9037, allocations: 0 / 0.6792 GB, free: 3.094 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001966/0.9039, allocations: 64 kB / 0.6793 GB, free: 3.031 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: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.01415/0.9181, allocations: 3.361 MB / 0.6825 GB, free: 15.61 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 7.277e-05/0.9182, allocations: 15.97 kB / 0.6825 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002828/0.921, allocations: 0.6429 MB / 0.6832 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01759/0.9386, allocations: 4.277 MB / 0.6874 GB, free: 10.66 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01349/0.9522, allocations: 4.123 MB / 0.6914 GB, free: 6.469 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003652/0.9526, allocations: 258.8 kB / 0.6916 GB, free: 6.215 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002055/0.9547, allocations: 343.9 kB / 0.692 GB, free: 5.879 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02322/0.9779, allocations: 8.494 MB / 0.7003 GB, free: 12.41 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003806/0.9784, allocations: 59.41 kB / 0.7003 GB, free: 12.35 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002013/0.9804, allocations: 175.9 kB / 0.7005 GB, free: 12.18 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001588/0.982, allocations: 0.8293 MB / 0.7013 GB, free: 11.35 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01559/0.9976, allocations: 6.728 MB / 0.7079 GB, free: 4.609 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4556/1.453, allocations: 40.94 MB / 0.7478 GB, free: 99.72 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005457/1.459, allocations: 2.39 MB / 0.7502 GB, free: 99.06 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001465/1.46, allocations: 1.002 MB / 0.7512 GB, free: 99.03 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003534/1.461, allocations: 336.8 kB / 0.7515 GB, free: 98.74 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.282e-05/1.461, allocations: 46.61 kB / 0.7515 GB, free: 98.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=104): time 4.348e-06/1.461, allocations: 1.406 kB / 0.7515 GB, free: 98.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=118): time 0.02139/1.482, allocations: 6.973 MB / 0.7583 GB, free: 96.44 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.223e-05/1.482, allocations: 190.7 kB / 0.7585 GB, free: 96.22 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006263/1.489, allocations: 3.355 MB / 0.7618 GB, free: 95.89 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002841/1.489, allocations: 47.36 kB / 0.7618 GB, free: 95.86 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001994/1.491, allocations: 2.812 MB / 0.7646 GB, free: 94.52 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005915/1.491, allocations: 499.8 kB / 0.7651 GB, free: 94.27 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002046/1.492, allocations: 114.1 kB / 0.7652 GB, free: 94.27 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002702/1.492, allocations: 0.5331 MB / 0.7657 GB, free: 93.95 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00192/1.494, allocations: 1.501 MB / 0.7671 GB, free: 93.94 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00409/1.498, allocations: 5.114 MB / 0.7721 GB, free: 89.22 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003704/1.502, allocations: 2.778 MB / 0.7749 GB, free: 88.84 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.35e-05/1.502, allocations: 39.05 kB / 0.7749 GB, free: 88.84 MB / 0.5105 GB Notification: Performance of matching and sorting (n=709) (initialization): time 0.01069/1.513, allocations: 6.494 MB / 0.7812 GB, free: 86.76 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.999e-05/1.513, allocations: 58.59 kB / 0.7813 GB, free: 86.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001489/1.513, allocations: 131 kB / 0.7814 GB, free: 86.76 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007465/1.514, allocations: 363.1 kB / 0.7818 GB, free: 86.71 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003748/1.517, allocations: 1.252 MB / 0.783 GB, free: 86.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002883/1.52, allocations: 2.705 MB / 0.7856 GB, free: 84.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004931/1.525, allocations: 288.8 kB / 0.7859 GB, free: 84.57 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001257/1.526, allocations: 347.6 kB / 0.7862 GB, free: 84.53 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[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],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 (674): * Single equations (assignments): 670 * 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.001878/1.528, allocations: 0.5346 MB / 0.7868 GB, free: 84.08 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001023/1.529, allocations: 306.9 kB / 0.787 GB, free: 83.91 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003229/1.533, allocations: 1.34 MB / 0.7884 GB, free: 83.39 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-05/1.533, allocations: 15.58 kB / 0.7884 GB, free: 83.39 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.376e-05/1.533, allocations: 3.469 kB / 0.7884 GB, free: 83.39 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.587e-05/1.533, allocations: 6.281 kB / 0.7884 GB, free: 83.39 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0129/1.546, allocations: 4.783 MB / 0.7931 GB, free: 81.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-05/1.546, allocations: 3.5 kB / 0.7931 GB, free: 81.56 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009124/1.547, allocations: 166.1 kB / 0.7932 GB, free: 81.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005178/1.547, allocations: 152.5 kB / 0.7934 GB, free: 81.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001463/1.547, allocations: 22.58 kB / 0.7934 GB, free: 81.49 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00219/1.55, allocations: 2.147 MB / 0.7955 GB, free: 79.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/1.55, allocations: 2.75 kB / 0.7955 GB, free: 79.86 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004464/1.554, allocations: 3.17 MB / 0.7986 GB, free: 78.35 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001478/1.556, allocations: 378.2 kB / 0.7989 GB, free: 78.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009783/1.557, allocations: 20.44 kB / 0.799 GB, free: 78.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00178/1.558, allocations: 47.78 kB / 0.799 GB, free: 78.03 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002128/1.559, allocations: 61.75 kB / 0.7991 GB, free: 78.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-05/1.559, allocations: 30.31 kB / 0.7991 GB, free: 78.01 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005132/1.564, allocations: 2.315 MB / 0.8014 GB, free: 77.21 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.52e-07/1.564, allocations: 0 / 0.8014 GB, free: 77.21 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00625/1.57, allocations: 0.7943 MB / 0.8021 GB, free: 77.11 MB / 0.5105 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 () * 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.005304/1.575, allocations: 4.036 MB / 0.8061 GB, free: 74.84 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006442/1.582, allocations: 3.693 MB / 0.8097 GB, free: 73.51 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.732e-06/1.582, allocations: 7.031 kB / 0.8097 GB, free: 73.51 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001113/1.583, allocations: 0.888 MB / 0.8105 GB, free: 73.12 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002439/1.586, allocations: 355.3 kB / 0.8109 GB, free: 72.96 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01988/1.605, allocations: 6.972 MB / 0.8177 GB, free: 70.43 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004376/1.61, allocations: 2.87 MB / 0.8205 GB, free: 68.62 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.004761/1.615, allocations: 1.72 MB / 0.8222 GB, free: 67.55 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002464/1.617, allocations: 1.519 MB / 0.8237 GB, free: 66.15 MB / 0.5105 GB Notification: Performance of SimCode: time 8.92e-07/1.617, allocations: 0 / 0.8237 GB, free: 66.15 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1025/1.72, allocations: 62.65 MB / 0.8848 GB, free: 11.42 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001603/1.72, allocations: 171 kB / 0.885 GB, free: 11.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.172/5.892, allocations: 0 / 0.885 GB, free: 11.2 MB / 0.5105 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