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.0008047/0.0008049, allocations: 99.75 kB / 16.02 MB, free: 72 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.001021/0.001021, allocations: 184.4 kB / 16.92 MB, free: 6.754 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.349/1.349, allocations: 205.4 MB / 223.1 MB, free: 5.543 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.3366/0.3366, allocations: 43.58 MB / 315 MB, free: 8.777 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.0005765/0.0005765, allocations: 16 kB / 384.7 MB, free: 7.562 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1212, allocations: 58.86 MB / 443.5 MB, free: 12.6 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.2312/0.3524, allocations: 32.92 MB / 476.5 MB, free: 29.36 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01463/0.3671, allocations: 7.658 MB / 484.1 MB, free: 26.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004302/0.3714, allocations: 143.5 kB / 484.3 MB, free: 26.01 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007664/0.3722, allocations: 350.1 kB / 484.6 MB, free: 25.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002799/0.375, allocations: 1.542 MB / 486.1 MB, free: 25.22 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008817/0.3759, allocations: 0.5103 MB / 486.6 MB, free: 25.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003828/0.3797, allocations: 4.99 MB / 491.6 MB, free: 23.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002986/0.3827, allocations: 2.994 MB / 494.6 MB, free: 22.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001044/0.3838, allocations: 0.9088 MB / 495.5 MB, free: 21.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001736/0.3855, allocations: 1.602 MB / 497.1 MB, free: 21.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002796/0.3858, allocations: 116 kB / 497.3 MB, free: 21.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001676/0.3875, allocations: 1.061 MB / 498.3 MB, free: 21.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001501/0.389, allocations: 1.397 MB / 499.7 MB, free: 20.81 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001573/0.3906, allocations: 1.666 MB / 0.4896 GB, free: 19.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008558/0.3992, allocations: 5.537 MB / 0.495 GB, free: 18.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3992, allocations: 0 / 0.495 GB, free: 18.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3992, allocations: 0 / 0.495 GB, free: 18.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000169/0.3994, allocations: 1.375 kB / 0.495 GB, free: 18.14 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.009746/0.4092, allocations: 3.303 MB / 0.4983 GB, free: 16.24 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.4092, allocations: 9.781 kB / 0.4983 GB, free: 16.24 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001935/0.4112, allocations: 0.5733 MB / 0.4988 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08756/0.4987, allocations: 7.168 MB / 0.5058 GB, free: 13.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006463/0.5052, allocations: 2.685 MB / 0.5085 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001223/0.5054, allocations: 173.1 kB / 0.5086 GB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005513/0.5059, allocations: 241.9 kB / 0.5089 GB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01009/0.516, allocations: 7.831 MB / 0.5165 GB, free: 4.312 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.661e-05/0.5161, allocations: 43.64 kB / 0.5165 GB, free: 4.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003151/0.5165, allocations: 111.9 kB / 0.5166 GB, free: 4.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002354/0.5188, allocations: 1.668 MB / 0.5183 GB, free: 2.492 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01105/0.5299, allocations: 6.633 MB / 0.5248 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04067/0.5706, allocations: 31.25 MB / 0.5553 GB, free: 11.67 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004768/0.5754, allocations: 2.296 MB / 0.5575 GB, free: 9.227 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001434/0.5769, allocations: 1.123 MB / 0.5586 GB, free: 8.094 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003744/0.5773, allocations: 327.8 kB / 0.5589 GB, free: 7.719 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.769e-05/0.5773, allocations: 47.06 kB / 0.559 GB, free: 7.664 MB / 430.1 MB Notification: Performance of pre-optimization done (n=117): time 3.587e-06/0.5773, allocations: 4 kB / 0.559 GB, free: 7.66 MB / 430.1 MB Notification: Performance of matching and sorting (n=141): time 0.0337/0.611, allocations: 11.43 MB / 0.5701 GB, free: 12.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.6112, allocations: 192.6 kB / 0.5703 GB, free: 11.87 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005216/0.6164, allocations: 3.748 MB / 0.574 GB, free: 8.129 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002164/0.6167, allocations: 41.89 kB / 0.574 GB, free: 8.082 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00191/0.6186, allocations: 2.686 MB / 0.5766 GB, free: 5.355 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006318/0.6192, allocations: 0.5671 MB / 0.5772 GB, free: 4.781 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005432/0.6198, allocations: 465.7 kB / 0.5776 GB, free: 4.32 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.6199, allocations: 305.1 kB / 0.5779 GB, free: 4.02 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002587/0.6225, allocations: 1.701 MB / 0.5796 GB, free: 2.312 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005023/0.6275, allocations: 5.138 MB / 0.5846 GB, free: 11.44 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008816/0.6363, allocations: 7.418 MB / 0.5919 GB, free: 2.312 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.612e-05/0.6365, allocations: 36 kB / 0.5919 GB, free: 2.277 MB / 462.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01263/0.6491, allocations: 6.798 MB / 0.5985 GB, free: 11.47 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.45e-05/0.6492, allocations: 56 kB / 0.5986 GB, free: 11.42 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001217/0.6493, allocations: 120 kB / 0.5987 GB, free: 11.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009365/0.6503, allocations: 404.6 kB / 0.5991 GB, free: 10.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003887/0.6542, allocations: 1.232 MB / 0.6003 GB, free: 9.668 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003601/0.6578, allocations: 3.099 MB / 0.6033 GB, free: 6.43 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0043/0.6621, allocations: 299.5 kB / 0.6036 GB, free: 6.137 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008312/0.663, allocations: 336 kB / 0.6039 GB, free: 5.809 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.003943/0.6669, allocations: 1.774 MB / 0.6056 GB, free: 4.023 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007521/0.6677, allocations: 312 kB / 0.6059 GB, free: 3.715 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003869/0.6716, allocations: 1.857 MB / 0.6078 GB, free: 1.84 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.338e-05/0.6717, allocations: 16 kB / 0.6078 GB, free: 1.824 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.251e-05/0.6717, allocations: 7.938 kB / 0.6078 GB, free: 1.816 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/0.6717, allocations: 3.984 kB / 0.6078 GB, free: 1.812 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01216/0.6839, allocations: 5.622 MB / 0.6133 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-05/0.6839, allocations: 4 kB / 0.6133 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0011/0.685, allocations: 215.7 kB / 0.6135 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006996/0.6857, allocations: 224.7 kB / 0.6137 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001234/0.6859, allocations: 24 kB / 0.6137 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002916/0.6888, allocations: 2.519 MB / 0.6162 GB, free: 8.988 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.6888, allocations: 8.031 kB / 0.6162 GB, free: 8.98 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005794/0.6946, allocations: 3.894 MB / 0.62 GB, free: 5.055 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001427/0.6961, allocations: 0.5438 MB / 0.6205 GB, free: 4.488 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007756/0.6969, allocations: 27.98 kB / 0.6205 GB, free: 4.461 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00161/0.6985, allocations: 71.91 kB / 0.6206 GB, free: 4.391 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002006/0.6987, allocations: 80.5 kB / 0.6207 GB, free: 4.312 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/0.6988, allocations: 39.98 kB / 0.6207 GB, free: 4.273 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005182/0.704, allocations: 2.35 MB / 0.623 GB, free: 1.938 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.704, allocations: 0 / 0.623 GB, free: 1.938 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005288/0.7093, allocations: 0.8085 MB / 0.6238 GB, free: 1.129 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 (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.006457/0.7158, allocations: 4.532 MB / 0.6282 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007196/0.723, allocations: 4.094 MB / 0.6322 GB, free: 8.477 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.723, allocations: 4 kB / 0.6322 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001769/0.7248, allocations: 1.143 MB / 0.6334 GB, free: 7.32 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003496/0.7283, allocations: 363.9 kB / 0.6337 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2748/1.003, allocations: 44.12 MB / 0.6768 GB, free: 133.1 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003225/1.006, allocations: 2.76 MB / 0.6795 GB, free: 131.9 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004664/1.011, allocations: 1.73 MB / 0.6812 GB, free: 131.8 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002172/1.013, allocations: 1.505 MB / 0.6826 GB, free: 130.6 MB / 0.4981 GB Notification: Performance of SimCode: time 1.042e-06/1.013, allocations: 1.219 kB / 0.6826 GB, free: 130.6 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08818/1.101, allocations: 57.82 MB / 0.7391 GB, free: 89.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001593/1.102, allocations: 206.9 kB / 0.7393 GB, free: 89.05 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.234/4.336, allocations: 4 kB / 0.7393 GB, free: 89.04 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