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.001085/0.001086, allocations: 101.1 kB / 16.26 MB, free: 5.93 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.001067/0.001067, allocations: 190.9 kB / 17.2 MB, free: 5.574 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.504/1.504, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2116/0.2116, allocations: 43.52 MB / 313.9 MB, free: 0.5195 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.001529/0.001529, allocations: 72.61 kB / 382.8 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1098, allocations: 57.79 MB / 440.6 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.008414/0.1182, allocations: 9.413 MB / 450 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007591/0.1259, allocations: 3.606 MB / 453.6 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009968/0.1269, allocations: 47.88 kB / 453.7 MB, free: 9.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002868/0.1298, allocations: 1.693 MB / 455.4 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00327/0.1331, allocations: 1.638 MB / 457 MB, free: 6.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001121/0.1343, allocations: 0.5536 MB / 457.6 MB, free: 5.781 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003922/0.1382, allocations: 3.513 MB / 461.1 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002725/0.1409, allocations: 2.275 MB / 463.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001632/0.1426, allocations: 1.156 MB / 464.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002035/0.1446, allocations: 1.627 MB / 466.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005077/0.1451, allocations: 244 kB / 466.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001784/0.1469, allocations: 1.123 MB / 467.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001177/0.1481, allocations: 1.5 MB / 469 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001517/0.1497, allocations: 1.806 MB / 470.8 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005232/0.1549, allocations: 5.725 MB / 476.5 MB, free: 2.719 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1549, allocations: 0 / 476.5 MB, free: 2.719 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1549, allocations: 0 / 476.5 MB, free: 2.719 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001455/0.1551, allocations: 0 / 476.5 MB, free: 2.719 MB / 350.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.01012/0.1652, allocations: 4.001 MB / 480.5 MB, free: 14.65 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.1653, allocations: 11.89 kB / 480.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007895/0.1661, allocations: 0.5716 MB / 481.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08981/0.2559, allocations: 6.975 MB / 488.1 MB, free: 7.066 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006264/0.2622, allocations: 2.689 MB / 490.8 MB, free: 4.312 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00015/0.2624, allocations: 176.7 kB / 491 MB, free: 4.137 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005998/0.263, allocations: 227.7 kB / 491.2 MB, free: 3.914 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01266/0.2757, allocations: 7.82 MB / 499 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001038/0.2758, allocations: 47.58 kB / 499 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003063/0.2761, allocations: 111.9 kB / 499.2 MB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002691/0.2788, allocations: 1.668 MB / 0.4891 GB, free: 9.633 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01221/0.2911, allocations: 6.629 MB / 0.4956 GB, free: 2.992 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04568/0.3368, allocations: 31.22 MB / 0.526 GB, free: 2.816 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005064/0.3419, allocations: 2.283 MB / 0.5283 GB, free: 396 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.217/0.5589, allocations: 1.114 MB / 0.5294 GB, free: 87.94 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004096/0.5594, allocations: 316.4 kB / 0.5297 GB, free: 87.66 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.189e-05/0.5594, allocations: 56.11 kB / 0.5297 GB, free: 87.62 MB / 414.1 MB Notification: Performance of pre-optimization done (n=117): time 4.569e-06/0.5594, allocations: 0 / 0.5297 GB, free: 87.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=141): time 0.0342/0.5936, allocations: 11.38 MB / 0.5408 GB, free: 85.09 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.618e-05/0.5937, allocations: 195.6 kB / 0.541 GB, free: 84.87 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005045/0.5988, allocations: 3.754 MB / 0.5447 GB, free: 83.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000177/0.599, allocations: 49.55 kB / 0.5447 GB, free: 83.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001123/0.6001, allocations: 2.689 MB / 0.5474 GB, free: 81.4 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003884/0.6005, allocations: 0.5627 MB / 0.5479 GB, free: 81 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00107/0.6016, allocations: 1.079 MB / 0.549 GB, free: 80.47 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.444e-05/0.6016, allocations: 301.1 kB / 0.5493 GB, free: 80.18 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001989/0.6036, allocations: 1.696 MB / 0.5509 GB, free: 79.64 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003007/0.6067, allocations: 5.129 MB / 0.5559 GB, free: 74.42 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005678/0.6124, allocations: 7.437 MB / 0.5632 GB, free: 66.91 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.853e-05/0.6124, allocations: 36 kB / 0.5632 GB, free: 66.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.008944/0.6214, allocations: 6.799 MB / 0.5699 GB, free: 60.07 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.807e-05/0.6215, allocations: 66.91 kB / 0.5699 GB, free: 60 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-05/0.6216, allocations: 120 kB / 0.57 GB, free: 59.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000802/0.6224, allocations: 405.2 kB / 0.5704 GB, free: 59.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003119/0.6255, allocations: 1.236 MB / 0.5716 GB, free: 58.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002802/0.6283, allocations: 3.339 MB / 0.5749 GB, free: 54.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003759/0.6321, allocations: 295.5 kB / 0.5752 GB, free: 54.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004355/0.6325, allocations: 340 kB / 0.5755 GB, free: 54.16 MB / 414.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.00206/0.6346, allocations: 1.782 MB / 0.5772 GB, free: 52.37 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005602/0.6352, allocations: 310.3 kB / 0.5775 GB, free: 52.06 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002704/0.6379, allocations: 1.857 MB / 0.5793 GB, free: 50.2 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.177e-05/0.6379, allocations: 19.59 kB / 0.5794 GB, free: 50.18 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/0.6379, allocations: 4 kB / 0.5794 GB, free: 50.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.638, allocations: 7.969 kB / 0.5794 GB, free: 50.17 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007869/0.6458, allocations: 5.622 MB / 0.5849 GB, free: 44.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.6459, allocations: 4 kB / 0.5849 GB, free: 44.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009339/0.6468, allocations: 205.4 kB / 0.5851 GB, free: 44.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000569/0.6474, allocations: 233.5 kB / 0.5853 GB, free: 44.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.457e-05/0.6475, allocations: 31.98 kB / 0.5853 GB, free: 44.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002151/0.6496, allocations: 2.705 MB / 0.588 GB, free: 41.2 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.6497, allocations: 0 / 0.588 GB, free: 41.2 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00433/0.654, allocations: 3.89 MB / 0.5918 GB, free: 37.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00107/0.6551, allocations: 0.5398 MB / 0.5923 GB, free: 36.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003342/0.6554, allocations: 24 kB / 0.5923 GB, free: 36.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.6565, allocations: 67.91 kB / 0.5924 GB, free: 36.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001716/0.6567, allocations: 77.48 kB / 0.5924 GB, free: 36.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.006e-05/0.6568, allocations: 36 kB / 0.5925 GB, free: 36.53 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002714/0.6595, allocations: 2.354 MB / 0.5948 GB, free: 34.19 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.6595, allocations: 0 / 0.5948 GB, free: 34.19 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003944/0.6635, allocations: 0.8072 MB / 0.5956 GB, free: 33.38 MB / 414.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.004552/0.668, allocations: 4.522 MB / 0.6 GB, free: 28.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006303/0.6744, allocations: 4.552 MB / 0.6044 GB, free: 24.3 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/0.6744, allocations: 0 / 0.6044 GB, free: 24.3 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001383/0.6758, allocations: 1.142 MB / 0.6055 GB, free: 23.15 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002298/0.6781, allocations: 389.5 kB / 0.6059 GB, free: 22.78 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05045/0.7286, allocations: 42.62 MB / 0.6475 GB, free: 5.312 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002947/0.7316, allocations: 2.763 MB / 0.6502 GB, free: 2.539 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004096/0.7357, allocations: 1.733 MB / 0.6519 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002247/0.738, allocations: 1.529 MB / 0.6534 GB, free: 15.33 MB / 462.1 MB Notification: Performance of SimCode: time 1.333e-06/0.738, allocations: 0 / 0.6534 GB, free: 15.33 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1085/0.8465, allocations: 59.59 MB / 0.7116 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/12.29, allocations: 23.86 kB / 0.7116 GB, free: 3.664 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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches