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.001183/0.001183, allocations: 96.14 kB / 15.87 MB, free: 16 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.001092/0.001092, allocations: 206.3 kB / 16.79 MB, free: 6.84 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.37/1.37, allocations: 205.1 MB / 222.6 MB, free: 4.996 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.3065/0.3065, allocations: 43.5 MB / 313.5 MB, free: 8.375 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.001318/0.001318, allocations: 67.91 kB / 382.1 MB, free: 8.719 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1032, allocations: 57.78 MB / 439.9 MB, free: 14.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.2237/0.3269, allocations: 33.89 MB / 473.8 MB, free: 31.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01466/0.3416, allocations: 7.717 MB / 481.5 MB, free: 26.62 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006034/0.3477, allocations: 143.4 kB / 481.7 MB, free: 26.6 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003005/0.3507, allocations: 1.662 MB / 483.3 MB, free: 25.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003394/0.3542, allocations: 1.523 MB / 484.8 MB, free: 25.19 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001053/0.3552, allocations: 0.5102 MB / 485.4 MB, free: 25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004404/0.3596, allocations: 4.998 MB / 490.4 MB, free: 23.53 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002188/0.3618, allocations: 2.23 MB / 492.6 MB, free: 22.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001487/0.3633, allocations: 1.026 MB / 493.6 MB, free: 22.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002309/0.3657, allocations: 1.754 MB / 495.4 MB, free: 21.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004952/0.3662, allocations: 161.6 kB / 495.5 MB, free: 21.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002038/0.3682, allocations: 1.105 MB / 496.6 MB, free: 21.49 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001541/0.3698, allocations: 1.459 MB / 498.1 MB, free: 21.03 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001845/0.3716, allocations: 1.729 MB / 499.8 MB, free: 19.85 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007725/0.3794, allocations: 5.685 MB / 0.4937 GB, free: 17.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.3794, allocations: 0 / 0.4937 GB, free: 17.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3794, allocations: 0 / 0.4937 GB, free: 17.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002349/0.3797, allocations: 0 / 0.4937 GB, free: 17.88 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.01271/0.3924, allocations: 3.991 MB / 0.4975 GB, free: 15.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.3924, allocations: 13.72 kB / 0.4976 GB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001271/0.3937, allocations: 0.573 MB / 0.4981 GB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07573/0.4695, allocations: 6.977 MB / 0.5049 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005463/0.475, allocations: 2.697 MB / 0.5076 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.4751, allocations: 173.3 kB / 0.5077 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004956/0.4756, allocations: 229.4 kB / 0.508 GB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009787/0.4854, allocations: 7.817 MB / 0.5156 GB, free: 3.203 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.253e-05/0.4855, allocations: 39.66 kB / 0.5156 GB, free: 3.164 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002944/0.4858, allocations: 119.8 kB / 0.5157 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00213/0.4879, allocations: 1.664 MB / 0.5174 GB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01115/0.4991, allocations: 6.625 MB / 0.5238 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03381/0.5329, allocations: 31.24 MB / 0.5543 GB, free: 10.58 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004558/0.5375, allocations: 2.291 MB / 0.5566 GB, free: 8.141 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00143/0.539, allocations: 1.118 MB / 0.5577 GB, free: 7.012 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003604/0.5394, allocations: 323.8 kB / 0.558 GB, free: 6.641 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.815e-05/0.5394, allocations: 43.12 kB / 0.558 GB, free: 6.59 MB / 430.1 MB Notification: Performance of pre-optimization done (n=117): time 4.017e-06/0.5394, allocations: 0 / 0.558 GB, free: 6.59 MB / 430.1 MB Notification: Performance of matching and sorting (n=141): time 0.03376/0.5732, allocations: 11.39 MB / 0.5691 GB, free: 11.06 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.5734, allocations: 192.6 kB / 0.5693 GB, free: 10.83 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005293/0.5787, allocations: 3.748 MB / 0.573 GB, free: 7.09 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002332/0.5789, allocations: 41.7 kB / 0.573 GB, free: 7.043 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001793/0.5807, allocations: 2.694 MB / 0.5757 GB, free: 4.309 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006191/0.5813, allocations: 0.5517 MB / 0.5762 GB, free: 3.75 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001314/0.5827, allocations: 1.087 MB / 0.5773 GB, free: 2.652 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.336e-05/0.5828, allocations: 305.1 kB / 0.5776 GB, free: 2.352 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002406/0.5852, allocations: 1.693 MB / 0.5792 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00411/0.5893, allocations: 5.138 MB / 0.5842 GB, free: 9.781 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007477/0.5968, allocations: 7.435 MB / 0.5915 GB, free: 0.6328 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.31e-05/0.5969, allocations: 36 kB / 0.5915 GB, free: 0.5977 MB / 462.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01166/0.6086, allocations: 6.797 MB / 0.5982 GB, free: 9.789 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.404e-05/0.6087, allocations: 56 kB / 0.5982 GB, free: 9.734 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001093/0.6088, allocations: 120 kB / 0.5983 GB, free: 9.617 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009022/0.6097, allocations: 409.2 kB / 0.5987 GB, free: 9.215 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003687/0.6134, allocations: 1.236 MB / 0.5999 GB, free: 7.977 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003386/0.6168, allocations: 3.082 MB / 0.6029 GB, free: 4.762 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00406/0.6209, allocations: 295.4 kB / 0.6032 GB, free: 4.473 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007652/0.6217, allocations: 332 kB / 0.6035 GB, free: 4.148 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003531/0.6252, allocations: 1.801 MB / 0.6053 GB, free: 2.344 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006815/0.6259, allocations: 311.9 kB / 0.6056 GB, free: 2.035 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00344/0.6294, allocations: 1.849 MB / 0.6074 GB, free: 172 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.577e-05/0.6294, allocations: 16 kB / 0.6074 GB, free: 156 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.6294, allocations: 7.938 kB / 0.6074 GB, free: 148 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/0.6294, allocations: 7.922 kB / 0.6074 GB, free: 140 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01216/0.6416, allocations: 5.624 MB / 0.6129 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.615e-05/0.6416, allocations: 4 kB / 0.6129 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.6427, allocations: 215.7 kB / 0.6131 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007202/0.6435, allocations: 228.6 kB / 0.6133 GB, free: 9.98 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001674/0.6437, allocations: 28 kB / 0.6134 GB, free: 9.953 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002927/0.6466, allocations: 2.518 MB / 0.6158 GB, free: 7.305 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.6466, allocations: 4 kB / 0.6158 GB, free: 7.301 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005539/0.6522, allocations: 3.89 MB / 0.6196 GB, free: 3.379 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001322/0.6535, allocations: 0.5359 MB / 0.6202 GB, free: 2.82 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007217/0.6543, allocations: 24 kB / 0.6202 GB, free: 2.797 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001503/0.6558, allocations: 67.98 kB / 0.6202 GB, free: 2.73 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/0.656, allocations: 80.42 kB / 0.6203 GB, free: 2.652 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/0.6561, allocations: 48.25 kB / 0.6204 GB, free: 2.605 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004345/0.6605, allocations: 2.346 MB / 0.6227 GB, free: 280 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6605, allocations: 0 / 0.6227 GB, free: 280 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.004899/0.6654, allocations: 0.8047 MB / 0.6234 GB, free: 15.46 MB / 0.4981 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 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006194/0.6716, allocations: 4.528 MB / 0.6279 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006811/0.6784, allocations: 4.099 MB / 0.6319 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/0.6785, allocations: 0 / 0.6319 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001809/0.6803, allocations: 1.134 MB / 0.633 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003113/0.6834, allocations: 362.2 kB / 0.6333 GB, free: 5.32 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2279/0.9114, allocations: 44.05 MB / 0.6763 GB, free: 133.3 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00248/0.9139, allocations: 2.753 MB / 0.679 GB, free: 132.2 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003874/0.9178, allocations: 1.734 MB / 0.6807 GB, free: 132 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001548/0.9193, allocations: 1.511 MB / 0.6822 GB, free: 130.8 MB / 0.4981 GB Notification: Performance of SimCode: time 9.62e-07/0.9193, allocations: 0 / 0.6822 GB, free: 130.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07353/0.9929, allocations: 58.36 MB / 0.7392 GB, free: 88.28 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001426/0.9931, allocations: 211.7 kB / 0.7394 GB, free: 88.02 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.025/4.018, allocations: 0 / 0.7394 GB, free: 88.02 MB / 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/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) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches