Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.conf.json 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/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009603/0.0009604, allocations: 96.05 kB / 15.68 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 173.8 kB / 16.56 MB, free: 6.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.619/1.619, allocations: 205.4 MB / 222.7 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3642/0.3642, allocations: 43.54 MB / 314.5 MB, free: 8.742 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000554/0.0005545, allocations: 12 kB / 384 MB, free: 7.949 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1311, allocations: 58.86 MB / 442.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.2741/0.4053, allocations: 29 MB / 471.8 MB, free: 34.3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02051/0.4258, allocations: 7.53 MB / 479.4 MB, free: 29.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007959/0.4338, allocations: 139.9 kB / 479.5 MB, free: 29.21 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006015/0.4399, allocations: 1.402 MB / 480.9 MB, free: 28.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.015/0.455, allocations: 4.291 MB / 485.2 MB, free: 26.74 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002312/0.4573, allocations: 486.7 kB / 485.7 MB, free: 26.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02238/0.4797, allocations: 13.76 MB / 499.4 MB, free: 22.63 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006404/0.4862, allocations: 2.653 MB / 0.4903 GB, free: 21.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002525/0.4888, allocations: 0.8255 MB / 0.4911 GB, free: 21.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002418/0.4912, allocations: 1.134 MB / 0.4922 GB, free: 20.96 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000609/0.4919, allocations: 113.4 kB / 0.4924 GB, free: 20.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002518/0.4944, allocations: 0.8893 MB / 0.4932 GB, free: 20.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002063/0.4965, allocations: 1.26 MB / 0.4944 GB, free: 20.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001527/0.498, allocations: 0.6735 MB / 0.4951 GB, free: 19.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007768/0.5058, allocations: 4.529 MB / 0.4995 GB, free: 18.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.5058, allocations: 1.469 kB / 0.4995 GB, free: 18.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.5059, allocations: 3.938 kB / 0.4995 GB, free: 18.04 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002075/0.5061, allocations: 0 / 0.4995 GB, free: 18.04 MB / 382.1 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.01154/0.5176, allocations: 3.393 MB / 0.5028 GB, free: 15.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/0.5177, allocations: 13.95 kB / 0.5029 GB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002305/0.52, allocations: 0.5688 MB / 0.5034 GB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08138/0.6014, allocations: 8.238 MB / 0.5115 GB, free: 9.641 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007728/0.6092, allocations: 2.449 MB / 0.5139 GB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.6093, allocations: 172.3 kB / 0.514 GB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008778/0.6102, allocations: 227.8 kB / 0.5142 GB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01349/0.6237, allocations: 7.852 MB / 0.5219 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001105/0.6239, allocations: 43.53 kB / 0.5219 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003589/0.6243, allocations: 111.9 kB / 0.5221 GB, free: 14.1 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002925/0.6272, allocations: 1.664 MB / 0.5237 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01377/0.641, allocations: 6.657 MB / 0.5302 GB, free: 5.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04392/0.6849, allocations: 31.3 MB / 0.5607 GB, free: 5.543 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005005/0.69, allocations: 2.3 MB / 0.563 GB, free: 3.094 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004245/0.6905, allocations: 323.8 kB / 0.5633 GB, free: 2.723 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.151e-05/0.6905, allocations: 43.12 kB / 0.5633 GB, free: 2.672 MB / 430.1 MB Notification: Performance of pre-optimization done (n=117): time 4.518e-06/0.6905, allocations: 0 / 0.5633 GB, free: 2.672 MB / 430.1 MB Notification: Performance of matching and sorting (n=141): time 0.03549/0.726, allocations: 11.69 MB / 0.5748 GB, free: 6.793 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/0.7262, allocations: 196.6 kB / 0.5749 GB, free: 6.559 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005668/0.7319, allocations: 3.858 MB / 0.5787 GB, free: 2.707 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002878/0.7322, allocations: 45.7 kB / 0.5788 GB, free: 2.656 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002144/0.7343, allocations: 2.675 MB / 0.5814 GB, free: 15.94 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007784/0.7351, allocations: 0.5672 MB / 0.5819 GB, free: 15.36 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002031/0.7353, allocations: 107.9 kB / 0.582 GB, free: 15.26 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003671/0.7357, allocations: 0.5293 MB / 0.5825 GB, free: 14.72 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002651/0.7384, allocations: 1.681 MB / 0.5842 GB, free: 13.04 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005158/0.7435, allocations: 5.087 MB / 0.5892 GB, free: 6.215 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004339/0.7479, allocations: 2.878 MB / 0.592 GB, free: 3.336 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.659e-05/0.748, allocations: 39.98 kB / 0.592 GB, free: 3.297 MB / 462.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01181/0.7598, allocations: 6.751 MB / 0.5986 GB, free: 12.54 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.617e-05/0.7599, allocations: 60 kB / 0.5987 GB, free: 12.48 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001271/0.76, allocations: 120 kB / 0.5988 GB, free: 12.37 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009503/0.761, allocations: 422.4 kB / 0.5992 GB, free: 11.95 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003858/0.7649, allocations: 1.24 MB / 0.6004 GB, free: 10.71 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004114/0.769, allocations: 3.138 MB / 0.6034 GB, free: 7.43 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00432/0.7733, allocations: 303.4 kB / 0.6037 GB, free: 7.133 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005942/0.7739, allocations: 340.6 kB / 0.6041 GB, free: 6.801 MB / 478.1 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.003163/0.7771, allocations: 1.774 MB / 0.6058 GB, free: 5.012 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000556/0.7777, allocations: 308 kB / 0.6061 GB, free: 4.707 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00332/0.781, allocations: 1.857 MB / 0.6079 GB, free: 2.832 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.884e-05/0.781, allocations: 20 kB / 0.6079 GB, free: 2.812 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.7811, allocations: 0 / 0.6079 GB, free: 2.812 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.468e-05/0.7811, allocations: 7.984 kB / 0.6079 GB, free: 2.805 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0103/0.7914, allocations: 5.633 MB / 0.6134 GB, free: 13.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.343e-06/0.7914, allocations: 0 / 0.6134 GB, free: 13.09 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/0.7925, allocations: 215.7 kB / 0.6136 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007381/0.7933, allocations: 228.7 kB / 0.6139 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.409e-05/0.7934, allocations: 24 kB / 0.6139 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00296/0.7963, allocations: 2.569 MB / 0.6164 GB, free: 9.926 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.7963, allocations: 0 / 0.6164 GB, free: 9.926 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006037/0.8024, allocations: 4.005 MB / 0.6203 GB, free: 5.867 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001957/0.8044, allocations: 0.5515 MB / 0.6208 GB, free: 5.293 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004101/0.8048, allocations: 19.98 kB / 0.6209 GB, free: 5.273 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/0.8061, allocations: 75.98 kB / 0.6209 GB, free: 5.199 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001947/0.8063, allocations: 77.05 kB / 0.621 GB, free: 5.125 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.8064, allocations: 36 kB / 0.621 GB, free: 5.09 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00488/0.8113, allocations: 2.428 MB / 0.6234 GB, free: 2.676 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8113, allocations: 0 / 0.6234 GB, free: 2.676 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005949/0.8172, allocations: 0.8398 MB / 0.6242 GB, free: 1.836 MB / 494.1 MB 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.2652/1.082, allocations: 4.917 MB / 0.629 GB, free: 137.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007638/1.09, allocations: 4.07 MB / 0.633 GB, free: 137.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.106e-06/1.09, allocations: 0 / 0.633 GB, free: 137.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001799/1.092, allocations: 1.14 MB / 0.6341 GB, free: 137.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002298/1.094, allocations: 353.9 kB / 0.6344 GB, free: 137.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07887/1.173, allocations: 112 MB / 0.7438 GB, free: 35.98 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003102/1.176, allocations: 2.829 MB / 0.7466 GB, free: 34.81 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004768/1.181, allocations: 1.737 MB / 0.7483 GB, free: 34.66 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002039/1.183, allocations: 1.51 MB / 0.7498 GB, free: 33.46 MB / 494.1 MB Notification: Performance of SimCode: time 1.143e-06/1.183, allocations: 0 / 0.7498 GB, free: 33.46 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1153/1.299, allocations: 64.31 MB / 0.8126 GB, free: 292 kB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002198/1.299, allocations: 199 kB / 0.8128 GB, free: 40 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.037/5.336, allocations: 0 / 0.8128 GB, free: 40 kB / 0.4981 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat