Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",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.001032/0.001032, allocations: 177.6 kB / 8.002 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.677/1.677, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008457/0.0008458, allocations: 95.81 kB / 261.8 MB, free: 1.684 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.2145/0.2145, allocations: 43.5 MB / 353.2 MB, free: 280 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.777e-05/1.804e-05, allocations: 0 / 418.3 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1326, allocations: 58.85 MB / 477.2 MB, free: 1.555 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4769/0.6095, allocations: 103.8 MB / 0.5674 GB, free: 7.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003055/0.6099, allocations: 80.8 kB / 0.5675 GB, free: 7.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2068/0.8167, allocations: 77.71 MB / 0.6434 GB, free: 2.074 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.8168, allocations: 0 / 0.6434 GB, free: 2.074 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002102/0.817, allocations: 72 kB / 0.6434 GB, free: 2.004 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.0124/0.8294, allocations: 3.535 MB / 0.6469 GB, free: 14.41 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/0.8295, allocations: 8.031 kB / 0.6469 GB, free: 14.4 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01853/0.848, allocations: 4.332 MB / 0.6511 GB, free: 10.06 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01293/0.861, allocations: 4.381 MB / 0.6554 GB, free: 5.613 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002303/0.8613, allocations: 120 kB / 0.6555 GB, free: 5.496 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002031/0.8633, allocations: 215.9 kB / 0.6557 GB, free: 5.285 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01134/0.8747, allocations: 5.219 MB / 0.6608 GB, free: 64 kB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01812/0.8928, allocations: 8.347 MB / 0.669 GB, free: 6.734 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001625/0.8931, allocations: 55.5 kB / 0.669 GB, free: 6.68 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005327/0.8936, allocations: 35.94 kB / 0.6691 GB, free: 6.645 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001201/0.8948, allocations: 0.9001 MB / 0.6699 GB, free: 5.746 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3704/1.265, allocations: 40.89 MB / 0.7099 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003414/1.269, allocations: 2.418 MB / 0.7122 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001582/1.27, allocations: 1.057 MB / 0.7133 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004097/1.271, allocations: 327.3 kB / 0.7136 GB, free: 103.4 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.922e-05/1.271, allocations: 47.56 kB / 0.7136 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=122): time 4.428e-06/1.271, allocations: 0 / 0.7136 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=140): time 0.0253/1.296, allocations: 9.61 MB / 0.723 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.137e-05/1.296, allocations: 193.5 kB / 0.7232 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00762/1.304, allocations: 3.039 MB / 0.7262 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004774/1.304, allocations: 27.27 kB / 0.7262 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002751/1.307, allocations: 3.05 MB / 0.7292 GB, free: 99.05 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007785/1.308, allocations: 0.5526 MB / 0.7297 GB, free: 98.75 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002877/1.308, allocations: 0 / 0.7297 GB, free: 98.75 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002923/1.309, allocations: 0.5642 MB / 0.7303 GB, free: 98.43 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001955/1.311, allocations: 1.558 MB / 0.7318 GB, free: 98.42 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004005/1.315, allocations: 5.537 MB / 0.7372 GB, free: 93.21 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004145/1.319, allocations: 2.937 MB / 0.7401 GB, free: 93.19 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.119e-05/1.319, allocations: 39.81 kB / 0.7401 GB, free: 93.19 MB / 0.4948 GB Notification: Performance of matching and sorting (n=793) (initialization): time 0.01114/1.33, allocations: 6.296 MB / 0.7462 GB, free: 92.73 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.304e-05/1.33, allocations: 68.03 kB / 0.7463 GB, free: 92.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001434/1.33, allocations: 142 kB / 0.7464 GB, free: 92.73 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006794/1.331, allocations: 370.7 kB / 0.7468 GB, free: 92.72 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003988/1.335, allocations: 1.408 MB / 0.7482 GB, free: 92.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002614/1.338, allocations: 2.642 MB / 0.7508 GB, free: 91.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005292/1.343, allocations: 191.5 kB / 0.7509 GB, free: 91.21 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001218/1.344, allocations: 390.2 kB / 0.7513 GB, free: 91.21 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 654 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (758): * Single equations (assignments): 754 * 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.001068/1.345, allocations: 452.1 kB / 0.7517 GB, free: 90.88 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003233/1.348, allocations: 1.867 MB / 0.7536 GB, free: 90.63 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005986/1.349, allocations: 310.1 kB / 0.7539 GB, free: 90.46 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002567/1.352, allocations: 1.546 MB / 0.7554 GB, free: 90.32 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.358e-05/1.352, allocations: 18.62 kB / 0.7554 GB, free: 90.32 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/1.352, allocations: 0 / 0.7554 GB, free: 90.32 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.495e-05/1.352, allocations: 9.281 kB / 0.7554 GB, free: 90.32 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008807/1.361, allocations: 4.723 MB / 0.76 GB, free: 88.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.367e-05/1.361, allocations: 5.781 kB / 0.76 GB, free: 88.66 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009394/1.362, allocations: 206.8 kB / 0.7602 GB, free: 88.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004372/1.362, allocations: 148 kB / 0.7603 GB, free: 88.61 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-05/1.362, allocations: 10.5 kB / 0.7604 GB, free: 88.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001813/1.364, allocations: 2.052 MB / 0.7624 GB, free: 87.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.269e-06/1.364, allocations: 4.609 kB / 0.7624 GB, free: 87.05 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004161/1.368, allocations: 3.504 MB / 0.7658 GB, free: 85.3 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001404/1.37, allocations: 0.4949 MB / 0.7663 GB, free: 84.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003296/1.37, allocations: 12.89 kB / 0.7663 GB, free: 84.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009786/1.371, allocations: 36.75 kB / 0.7663 GB, free: 84.97 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001745/1.371, allocations: 80.53 kB / 0.7664 GB, free: 84.96 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.599e-05/1.371, allocations: 41.59 kB / 0.7664 GB, free: 84.95 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002893/1.374, allocations: 2.006 MB / 0.7684 GB, free: 84.21 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.6e-07/1.374, allocations: 0.8438 kB / 0.7684 GB, free: 84.21 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005362/1.379, allocations: 0.7273 MB / 0.7691 GB, free: 84.21 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (109): * Single equations (assignments): 105 * 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.004372/1.384, allocations: 4.585 MB / 0.7736 GB, free: 81.5 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006406/1.39, allocations: 3.782 MB / 0.7773 GB, free: 80.16 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/1.39, allocations: 2.312 kB / 0.7773 GB, free: 80.16 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001225/1.392, allocations: 0.9551 MB / 0.7782 GB, free: 79.75 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001942/1.393, allocations: 290.2 kB / 0.7785 GB, free: 79.61 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01776/1.411, allocations: 7.316 MB / 0.7856 GB, free: 76.08 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002605/1.414, allocations: 3.046 MB / 0.7886 GB, free: 73.74 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004339/1.418, allocations: 1.856 MB / 0.7904 GB, free: 72.59 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002135/1.42, allocations: 1.643 MB / 0.792 GB, free: 71.07 MB / 0.4948 GB Notification: Performance of SimCode: time 1.152e-06/1.42, allocations: 4 kB / 0.792 GB, free: 71.07 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1017/1.522, allocations: 61.57 MB / 0.8522 GB, free: 18.61 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001462/1.522, allocations: 142.1 kB / 0.8523 GB, free: 18.41 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.928/5.451, allocations: 0 / 0.8523 GB, free: 18.41 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat