Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001666/0.001666, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0019/0.0019, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2271/0.2271, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 75.88 kB / 480.8 MB, free: 4.598 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3334, allocations: 62.44 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01042/0.3439, allocations: 8.926 MB / 0.5392 GB, free: 6.406 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008244/0.3522, allocations: 3.545 MB / 0.5427 GB, free: 3.656 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001771/0.354, allocations: 48.28 kB / 0.5427 GB, free: 3.648 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003875/0.3579, allocations: 1.668 MB / 0.5444 GB, free: 2.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004506/0.3625, allocations: 1.57 MB / 0.5459 GB, free: 1.438 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00153/0.364, allocations: 0.5604 MB / 0.5464 GB, free: 1.07 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005058/0.3691, allocations: 3.566 MB / 0.5499 GB, free: 13.86 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002527/0.3717, allocations: 2.19 MB / 0.5521 GB, free: 11.62 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00159/0.3733, allocations: 1.094 MB / 0.5531 GB, free: 10.52 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002031/0.3753, allocations: 1.538 MB / 0.5546 GB, free: 8.98 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000527/0.3759, allocations: 220 kB / 0.5548 GB, free: 8.766 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00204/0.3779, allocations: 1.1 MB / 0.5559 GB, free: 7.664 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001426/0.3794, allocations: 1.41 MB / 0.5573 GB, free: 6.25 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00185/0.3812, allocations: 1.677 MB / 0.5589 GB, free: 4.562 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006295/0.3875, allocations: 5.576 MB / 0.5644 GB, free: 14.96 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.3876, allocations: 3.984 kB / 0.5644 GB, free: 14.96 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3876, allocations: 3.938 kB / 0.5644 GB, free: 14.96 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001084/0.3877, allocations: 0 / 0.5644 GB, free: 14.96 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.008374/0.3961, allocations: 3.881 MB / 0.5682 GB, free: 11 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.3961, allocations: 12.03 kB / 0.5682 GB, free: 10.99 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007567/0.3969, allocations: 0.5462 MB / 0.5687 GB, free: 10.43 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07825/0.4751, allocations: 6.939 MB / 0.5755 GB, free: 3.48 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005717/0.4809, allocations: 2.405 MB / 0.5778 GB, free: 1.023 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001333/0.4811, allocations: 164.5 kB / 0.578 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005989/0.4817, allocations: 231.6 kB / 0.5782 GB, free: 0.6328 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01135/0.493, allocations: 7.339 MB / 0.5854 GB, free: 8.668 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-05/0.4932, allocations: 39.7 kB / 0.5854 GB, free: 8.629 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002995/0.4935, allocations: 103.9 kB / 0.5855 GB, free: 8.527 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002436/0.4959, allocations: 1.546 MB / 0.587 GB, free: 6.98 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0112/0.5071, allocations: 6.178 MB / 0.5931 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03483/0.542, allocations: 29.92 MB / 0.6223 GB, free: 1.93 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004571/0.5466, allocations: 2.165 MB / 0.6244 GB, free: 15.62 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001521/0.5482, allocations: 1.07 MB / 0.6255 GB, free: 14.54 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003956/0.5486, allocations: 319.7 kB / 0.6258 GB, free: 14.17 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.448e-05/0.5487, allocations: 50.94 kB / 0.6258 GB, free: 14.11 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.076e-06/0.5487, allocations: 0 / 0.6258 GB, free: 14.11 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03544/0.5841, allocations: 11.06 MB / 0.6366 GB, free: 2.941 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001333/0.5843, allocations: 192.6 kB / 0.6368 GB, free: 2.711 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00662/0.5909, allocations: 3.622 MB / 0.6403 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002488/0.5912, allocations: 45.83 kB / 0.6404 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002186/0.5934, allocations: 2.663 MB / 0.643 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000679/0.5941, allocations: 0.5583 MB / 0.6435 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001426/0.5955, allocations: 1.052 MB / 0.6445 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001483/0.5957, allocations: 309.1 kB / 0.6448 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00253/0.5982, allocations: 1.626 MB / 0.6464 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004833/0.6031, allocations: 4.969 MB / 0.6513 GB, free: 2.129 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008353/0.6114, allocations: 7.159 MB / 0.6583 GB, free: 9.309 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001081/0.6116, allocations: 36 kB / 0.6583 GB, free: 9.273 MB / 0.5137 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01191/0.6235, allocations: 6.577 MB / 0.6647 GB, free: 2.691 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.000112/0.6236, allocations: 56.22 kB / 0.6648 GB, free: 2.637 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001689/0.6238, allocations: 123.9 kB / 0.6649 GB, free: 2.516 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/0.6249, allocations: 404.5 kB / 0.6653 GB, free: 2.117 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003873/0.6288, allocations: 1.185 MB / 0.6664 GB, free: 0.9297 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004131/0.6329, allocations: 3.309 MB / 0.6697 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00401/0.6369, allocations: 283.7 kB / 0.6699 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008476/0.6378, allocations: 331.9 kB / 0.6703 GB, free: 12.89 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.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 (640): * Single equations (assignments): 636 * 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.002912/0.6407, allocations: 1.705 MB / 0.6719 GB, free: 11.17 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006818/0.6414, allocations: 313.9 kB / 0.6722 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003306/0.6447, allocations: 1.718 MB / 0.6739 GB, free: 9.129 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.81e-05/0.6448, allocations: 12 kB / 0.6739 GB, free: 9.117 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.458e-05/0.6448, allocations: 8.047 kB / 0.6739 GB, free: 9.109 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/0.6448, allocations: 11.91 kB / 0.6739 GB, free: 9.098 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00984/0.6547, allocations: 5.247 MB / 0.6791 GB, free: 3.762 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/0.6547, allocations: 0 / 0.6791 GB, free: 3.762 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.6558, allocations: 199.7 kB / 0.6792 GB, free: 3.566 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007248/0.6565, allocations: 228.7 kB / 0.6795 GB, free: 3.34 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001156/0.6566, allocations: 20 kB / 0.6795 GB, free: 3.32 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003155/0.6598, allocations: 2.692 MB / 0.6821 GB, free: 492 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/0.6598, allocations: 15.94 kB / 0.6821 GB, free: 476 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006188/0.666, allocations: 3.732 MB / 0.6858 GB, free: 12.71 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009585/0.667, allocations: 358.9 kB / 0.6861 GB, free: 12.34 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005919/0.6676, allocations: 27.98 kB / 0.6861 GB, free: 12.31 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001475/0.6691, allocations: 59.92 kB / 0.6862 GB, free: 12.25 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002539/0.6694, allocations: 76.5 kB / 0.6863 GB, free: 12.18 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/0.6695, allocations: 39.98 kB / 0.6863 GB, free: 12.14 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004518/0.674, allocations: 2.261 MB / 0.6885 GB, free: 9.887 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.91e-07/0.674, allocations: 0 / 0.6885 GB, free: 9.887 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004701/0.6787, allocations: 0.7577 MB / 0.6893 GB, free: 9.129 MB / 0.545 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.006496/0.6853, allocations: 4.366 MB / 0.6935 GB, free: 4.723 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006765/0.6921, allocations: 3.943 MB / 0.6974 GB, free: 0.793 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/0.6921, allocations: 0 / 0.6974 GB, free: 0.793 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001773/0.6939, allocations: 1.068 MB / 0.6984 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00328/0.6972, allocations: 371.8 kB / 0.6988 GB, free: 15.34 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3033/1.001, allocations: 36.54 MB / 0.7344 GB, free: 172.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002617/1.003, allocations: 2.641 MB / 0.737 GB, free: 171.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003477/1.007, allocations: 1.7 MB / 0.7387 GB, free: 171.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001559/1.008, allocations: 1.413 MB / 0.7401 GB, free: 170 MB / 0.5762 GB Notification: Performance of SimCode: time 7.01e-07/1.008, allocations: 0 / 0.7401 GB, free: 170 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08596/1.094, allocations: 53.32 MB / 0.7921 GB, free: 121.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.39/24.48, allocations: 7.922 kB / 0.7921 GB, free: 121.4 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches