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.00102/0.00102, allocations: 169.9 kB / 8.74 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.4/1.4, allocations: 221.5 MB / 230.7 MB, free: 7.578 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.0008351/0.0008351, allocations: 90.83 kB / 281.6 MB, free: 5.328 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.1931/0.1931, allocations: 44.15 MB / 376.5 MB, free: 3.055 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.461e-05/1.463e-05, allocations: 8.156 kB / 444.7 MB, free: 15.15 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1252, allocations: 61.91 MB / 0.4948 GB, free: 1.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4323/0.5575, allocations: 105.1 MB / 0.5974 GB, free: 7.289 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/0.5578, allocations: 79.95 kB / 0.5974 GB, free: 7.211 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1934/0.7512, allocations: 74.41 MB / 0.6701 GB, free: 12.29 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.188e-06/0.7512, allocations: 0 / 0.6701 GB, free: 12.29 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001408/0.7514, allocations: 67.94 kB / 0.6702 GB, free: 12.22 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.008772/0.7602, allocations: 3.361 MB / 0.6734 GB, free: 8.801 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/0.7602, allocations: 11.98 kB / 0.6735 GB, free: 8.789 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01717/0.7774, allocations: 4.285 MB / 0.6776 GB, free: 4.492 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01023/0.7877, allocations: 4.119 MB / 0.6817 GB, free: 316 kB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001707/0.7879, allocations: 112 kB / 0.6818 GB, free: 204 kB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001271/0.7892, allocations: 204 kB / 0.682 GB, free: 0 / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008967/0.7981, allocations: 4.804 MB / 0.6867 GB, free: 11.19 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01452/0.8127, allocations: 7.829 MB / 0.6943 GB, free: 2.391 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001667/0.8129, allocations: 51.47 kB / 0.6943 GB, free: 2.34 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000489/0.8134, allocations: 32 kB / 0.6944 GB, free: 2.309 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001123/0.8145, allocations: 0.8332 MB / 0.6952 GB, free: 1.473 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4022/1.217, allocations: 39.37 MB / 0.7336 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003187/1.22, allocations: 2.333 MB / 0.7359 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001386/1.221, allocations: 0.996 MB / 0.7369 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003781/1.222, allocations: 323.8 kB / 0.7372 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.928e-05/1.222, allocations: 48.23 kB / 0.7372 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=107): time 3.617e-06/1.222, allocations: 0 / 0.7372 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=122): time 0.02072/1.243, allocations: 8.992 MB / 0.746 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.259e-05/1.243, allocations: 197.6 kB / 0.7462 GB, free: 106 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006396/1.249, allocations: 2.908 MB / 0.7491 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003356/1.25, allocations: 30.98 kB / 0.7491 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003282/1.253, allocations: 2.869 MB / 0.7519 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001046/1.254, allocations: 0.5002 MB / 0.7524 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003029/1.254, allocations: 0 / 0.7524 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003264/1.255, allocations: 0.5456 MB / 0.7529 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002391/1.257, allocations: 1.453 MB / 0.7543 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004359/1.261, allocations: 5.185 MB / 0.7594 GB, free: 98.68 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003434/1.265, allocations: 2.752 MB / 0.7621 GB, free: 98.38 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.183e-05/1.265, allocations: 41.75 kB / 0.7621 GB, free: 98.38 MB / 0.5105 GB Notification: Performance of matching and sorting (n=740) (initialization): time 0.009738/1.275, allocations: 5.879 MB / 0.7679 GB, free: 96.72 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.075e-05/1.275, allocations: 64.38 kB / 0.7679 GB, free: 96.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001712/1.275, allocations: 132.3 kB / 0.768 GB, free: 96.72 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007523/1.276, allocations: 360 kB / 0.7684 GB, free: 96.68 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003698/1.279, allocations: 1.301 MB / 0.7697 GB, free: 96.51 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002559/1.282, allocations: 2.636 MB / 0.7722 GB, free: 94.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004649/1.287, allocations: 185 kB / 0.7724 GB, free: 94.69 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009137/1.288, allocations: 362.3 kB / 0.7728 GB, free: 94.65 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 615 * 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 (705): * Single equations (assignments): 701 * 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.0008355/1.288, allocations: 442.9 kB / 0.7732 GB, free: 94.29 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00277/1.291, allocations: 1.717 MB / 0.7749 GB, free: 93.65 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000346/1.292, allocations: 285.9 kB / 0.7751 GB, free: 93.49 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001973/1.294, allocations: 1.281 MB / 0.7764 GB, free: 93.01 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.812e-05/1.294, allocations: 19.33 kB / 0.7764 GB, free: 93.01 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/1.294, allocations: 3.562 kB / 0.7764 GB, free: 93.01 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/1.294, allocations: 15.47 kB / 0.7764 GB, free: 93 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00721/1.301, allocations: 4.183 MB / 0.7805 GB, free: 91.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/1.301, allocations: 0 / 0.7805 GB, free: 91.38 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007793/1.302, allocations: 174.6 kB / 0.7807 GB, free: 91.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004117/1.302, allocations: 150.5 kB / 0.7808 GB, free: 91.32 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.264e-05/1.302, allocations: 11.55 kB / 0.7808 GB, free: 91.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001739/1.304, allocations: 2.045 MB / 0.7828 GB, free: 89.76 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/1.304, allocations: 7.641 kB / 0.7828 GB, free: 89.76 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003461/1.307, allocations: 3.125 MB / 0.7859 GB, free: 88.26 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007465/1.308, allocations: 339.7 kB / 0.7862 GB, free: 87.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000353/1.308, allocations: 0 / 0.7862 GB, free: 87.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008733/1.309, allocations: 39.11 kB / 0.7862 GB, free: 87.99 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/1.31, allocations: 53.41 kB / 0.7863 GB, free: 87.98 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.797e-05/1.31, allocations: 37.86 kB / 0.7863 GB, free: 87.98 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002791/1.312, allocations: 1.919 MB / 0.7882 GB, free: 87.27 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.723e-06/1.312, allocations: 0 / 0.7882 GB, free: 87.27 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00505/1.317, allocations: 0.68 MB / 0.7889 GB, free: 87.26 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 (92): * Single equations (assignments): 88 * 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.00422/1.322, allocations: 3.991 MB / 0.7928 GB, free: 85.01 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005984/1.328, allocations: 3.525 MB / 0.7962 GB, free: 83.74 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/1.328, allocations: 0.9375 kB / 0.7962 GB, free: 83.74 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001016/1.329, allocations: 0.8657 MB / 0.797 GB, free: 83.38 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002066/1.331, allocations: 307.9 kB / 0.7973 GB, free: 83.23 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02017/1.351, allocations: 6.806 MB / 0.804 GB, free: 80.23 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004274/1.355, allocations: 2.878 MB / 0.8068 GB, free: 78.02 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.004736/1.36, allocations: 1.767 MB / 0.8085 GB, free: 76.92 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002225/1.362, allocations: 1.523 MB / 0.81 GB, free: 75.51 MB / 0.5105 GB Notification: Performance of SimCode: time 2.856e-06/1.362, allocations: 0 / 0.81 GB, free: 75.51 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.108/1.47, allocations: 57.97 MB / 0.8666 GB, free: 26.19 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001886/1.471, allocations: 134.4 kB / 0.8667 GB, free: 25.99 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.921/5.392, allocations: 0 / 0.8667 GB, free: 25.99 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