Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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 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) 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_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_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.001406/0.001406, allocations: 113.2 kB / 17.78 MB, free: 5.121 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 185 kB / 18.71 MB, free: 4.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2207/0.2207, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 75.89 kB / 470.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3657/0.3677, allocations: 60.8 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01086/0.3787, allocations: 9.037 MB / 0.5272 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008338/0.387, allocations: 3.546 MB / 0.5307 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001965/0.3891, allocations: 48.78 kB / 0.5307 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003743/0.3928, allocations: 1.679 MB / 0.5324 GB, free: 9.359 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004757/0.3976, allocations: 1.59 MB / 0.5339 GB, free: 8.254 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001557/0.3992, allocations: 0.5616 MB / 0.5345 GB, free: 7.887 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006301/0.4055, allocations: 3.586 MB / 0.538 GB, free: 5.922 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003262/0.4088, allocations: 2.207 MB / 0.5401 GB, free: 4.598 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002752/0.4116, allocations: 1.119 MB / 0.5412 GB, free: 3.961 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003622/0.4153, allocations: 1.552 MB / 0.5428 GB, free: 3.039 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001008/0.4163, allocations: 229.4 kB / 0.543 GB, free: 2.887 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003125/0.4195, allocations: 1.119 MB / 0.5441 GB, free: 1.766 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002188/0.4217, allocations: 1.445 MB / 0.5455 GB, free: 324 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002619/0.4243, allocations: 1.724 MB / 0.5472 GB, free: 14.58 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007851/0.4322, allocations: 5.731 MB / 0.5528 GB, free: 8.828 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.4322, allocations: 0 / 0.5528 GB, free: 8.828 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4322, allocations: 0 / 0.5528 GB, free: 8.828 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001689/0.4324, allocations: 0 / 0.5528 GB, free: 8.828 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.01022/0.4427, allocations: 3.963 MB / 0.5566 GB, free: 4.789 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.4427, allocations: 12.03 kB / 0.5566 GB, free: 4.777 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001069/0.4438, allocations: 0.5548 MB / 0.5572 GB, free: 4.211 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0939/0.5377, allocations: 6.974 MB / 0.564 GB, free: 13.23 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005858/0.5436, allocations: 2.538 MB / 0.5665 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001495/0.5438, allocations: 164.5 kB / 0.5666 GB, free: 10.46 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006897/0.5445, allocations: 227.8 kB / 0.5668 GB, free: 10.24 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01286/0.5574, allocations: 7.521 MB / 0.5742 GB, free: 2.094 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001133/0.5575, allocations: 39.7 kB / 0.5742 GB, free: 2.055 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003692/0.5579, allocations: 103.9 kB / 0.5743 GB, free: 1.953 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002964/0.5609, allocations: 1.609 MB / 0.5759 GB, free: 352 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01283/0.5737, allocations: 6.347 MB / 0.5821 GB, free: 9.988 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03767/0.6114, allocations: 30.27 MB / 0.6117 GB, free: 10.78 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004806/0.6163, allocations: 2.174 MB / 0.6138 GB, free: 8.461 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001611/0.6179, allocations: 1.071 MB / 0.6148 GB, free: 7.379 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004255/0.6184, allocations: 335.5 kB / 0.6151 GB, free: 6.996 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.866e-05/0.6184, allocations: 43 kB / 0.6152 GB, free: 6.945 MB / 478.1 MB Notification: Performance of pre-optimization done (n=108): time 3.186e-06/0.6184, allocations: 0 / 0.6152 GB, free: 6.945 MB / 478.1 MB Notification: Performance of matching and sorting (n=132): time 0.03534/0.6538, allocations: 11.13 MB / 0.626 GB, free: 11.7 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/0.654, allocations: 188.6 kB / 0.6262 GB, free: 11.48 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005877/0.6598, allocations: 3.671 MB / 0.6298 GB, free: 7.809 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002555/0.6601, allocations: 41.7 kB / 0.6299 GB, free: 7.762 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002352/0.6625, allocations: 2.718 MB / 0.6325 GB, free: 5.016 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007153/0.6632, allocations: 0.5467 MB / 0.633 GB, free: 4.465 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001586/0.6648, allocations: 1.06 MB / 0.6341 GB, free: 3.395 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.665, allocations: 305.1 kB / 0.6344 GB, free: 3.094 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00279/0.6678, allocations: 1.638 MB / 0.636 GB, free: 1.449 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005695/0.6735, allocations: 4.988 MB / 0.6408 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009281/0.6828, allocations: 7.194 MB / 0.6479 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001112/0.683, allocations: 36 kB / 0.6479 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01254/0.6955, allocations: 6.598 MB / 0.6543 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.365e-05/0.6956, allocations: 59.09 kB / 0.6544 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001478/0.6958, allocations: 120 kB / 0.6545 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.6968, allocations: 400.5 kB / 0.6549 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003934/0.7008, allocations: 1.197 MB / 0.6561 GB, free: 9.496 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004256/0.7051, allocations: 3.313 MB / 0.6593 GB, free: 6.047 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003906/0.709, allocations: 291.7 kB / 0.6596 GB, free: 5.762 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007939/0.7098, allocations: 328 kB / 0.6599 GB, free: 5.441 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,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 (643): * Single equations (assignments): 639 * 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.003343/0.7132, allocations: 1.731 MB / 0.6616 GB, free: 3.699 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006744/0.7139, allocations: 321.8 kB / 0.6619 GB, free: 3.383 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003393/0.7173, allocations: 1.726 MB / 0.6636 GB, free: 1.645 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.55e-05/0.7173, allocations: 16 kB / 0.6636 GB, free: 1.629 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.7173, allocations: 4 kB / 0.6636 GB, free: 1.625 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.482e-05/0.7174, allocations: 3.984 kB / 0.6636 GB, free: 1.621 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01009/0.7274, allocations: 5.318 MB / 0.6688 GB, free: 12.22 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-05/0.7275, allocations: 4 kB / 0.6688 GB, free: 12.21 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.7286, allocations: 195.7 kB / 0.669 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007201/0.7293, allocations: 232.6 kB / 0.6692 GB, free: 11.79 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001137/0.7294, allocations: 20 kB / 0.6692 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003271/0.7327, allocations: 2.695 MB / 0.6718 GB, free: 8.93 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.7327, allocations: 0 / 0.6718 GB, free: 8.93 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006058/0.7388, allocations: 3.744 MB / 0.6755 GB, free: 5.156 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001285/0.7401, allocations: 374.8 kB / 0.6759 GB, free: 4.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005959/0.7407, allocations: 20 kB / 0.6759 GB, free: 4.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001328/0.7421, allocations: 63.92 kB / 0.6759 GB, free: 4.688 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002302/0.7423, allocations: 64.56 kB / 0.676 GB, free: 4.625 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.7424, allocations: 39.98 kB / 0.676 GB, free: 4.586 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004132/0.7466, allocations: 2.301 MB / 0.6783 GB, free: 2.297 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.92e-07/0.7466, allocations: 0 / 0.6783 GB, free: 2.297 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004248/0.7508, allocations: 0.7734 MB / 0.679 GB, free: 1.523 MB / 0.5294 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 (102): * Single equations (assignments): 98 * 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.006339/0.7572, allocations: 4.386 MB / 0.6833 GB, free: 13.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006775/0.764, allocations: 3.94 MB / 0.6872 GB, free: 9.172 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.155e-06/0.764, allocations: 0 / 0.6872 GB, free: 9.172 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001737/0.7658, allocations: 1.076 MB / 0.6882 GB, free: 8.082 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002404/0.7682, allocations: 382.2 kB / 0.6886 GB, free: 7.707 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2761/1.044, allocations: 36.91 MB / 0.7246 GB, free: 184.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00299/1.047, allocations: 2.679 MB / 0.7273 GB, free: 183.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003447/1.051, allocations: 1.706 MB / 0.7289 GB, free: 183.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00172/1.053, allocations: 1.443 MB / 0.7303 GB, free: 183.1 MB / 0.5762 GB Notification: Performance of SimCode: time 1.022e-06/1.053, allocations: 0 / 0.7303 GB, free: 183.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08617/1.139, allocations: 53.98 MB / 0.783 GB, free: 142.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.5/23.64, allocations: 16.42 kB / 0.7831 GB, free: 142.6 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches