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.001356/0.001356, allocations: 108.9 kB / 16.41 MB, free: 6.445 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.001375/0.001375, allocations: 185.5 kB / 17.34 MB, free: 5.738 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.378/1.378, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.1988/0.1988, allocations: 43.53 MB / 314.1 MB, free: 472 kB / 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.001419/0.001419, allocations: 69.45 kB / 441.3 MB, free: 6.203 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1077, allocations: 57.8 MB / 499.1 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01196/0.1197, allocations: 9.417 MB / 0.4966 GB, free: 2.867 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0072/0.127, allocations: 3.606 MB / 0.5001 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001831/0.1289, allocations: 47.88 kB / 0.5002 GB, free: 15.2 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00355/0.1324, allocations: 1.693 MB / 0.5018 GB, free: 13.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004709/0.1372, allocations: 1.673 MB / 0.5035 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001428/0.1387, allocations: 0.5535 MB / 0.504 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005095/0.1438, allocations: 3.513 MB / 0.5074 GB, free: 7.746 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003031/0.1468, allocations: 2.267 MB / 0.5096 GB, free: 5.43 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002145/0.149, allocations: 1.164 MB / 0.5108 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002439/0.1514, allocations: 1.639 MB / 0.5124 GB, free: 2.617 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000765/0.1522, allocations: 236 kB / 0.5126 GB, free: 2.387 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002439/0.1547, allocations: 1.116 MB / 0.5137 GB, free: 1.27 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001889/0.1566, allocations: 1.515 MB / 0.5152 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002837/0.1594, allocations: 1.814 MB / 0.5169 GB, free: 13.93 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008154/0.1676, allocations: 5.957 MB / 0.5228 GB, free: 7.945 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.578e-06/0.1676, allocations: 4 kB / 0.5228 GB, free: 7.941 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1676, allocations: 0 / 0.5228 GB, free: 7.941 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002765/0.1679, allocations: 0 / 0.5228 GB, free: 7.941 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: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.01352/0.1815, allocations: 4.1 MB / 0.5268 GB, free: 3.766 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.442e-05/0.1816, allocations: 11.89 kB / 0.5268 GB, free: 3.754 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002127/0.1837, allocations: 0.5794 MB / 0.5273 GB, free: 3.164 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2809/0.4647, allocations: 6.987 MB / 0.5342 GB, free: 36.15 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005908/0.4706, allocations: 2.735 MB / 0.5368 GB, free: 35.79 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001168/0.4707, allocations: 170.9 kB / 0.537 GB, free: 35.78 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000554/0.4713, allocations: 230 kB / 0.5372 GB, free: 35.77 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01215/0.4835, allocations: 7.828 MB / 0.5449 GB, free: 32.44 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001075/0.4836, allocations: 36.75 kB / 0.5449 GB, free: 32.42 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003302/0.484, allocations: 114.6 kB / 0.545 GB, free: 32.38 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002844/0.4868, allocations: 1.664 MB / 0.5466 GB, free: 32.08 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01173/0.4986, allocations: 6.628 MB / 0.5531 GB, free: 30.02 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02981/0.5284, allocations: 31.16 MB / 0.5835 GB, free: 496 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004425/0.5329, allocations: 2.277 MB / 0.5858 GB, free: 14.06 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001418/0.5343, allocations: 1.122 MB / 0.5869 GB, free: 12.93 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003673/0.5347, allocations: 327.7 kB / 0.5872 GB, free: 12.55 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.468e-05/0.5347, allocations: 43.12 kB / 0.5872 GB, free: 12.5 MB / 430.1 MB Notification: Performance of pre-optimization done (n=117): time 3.877e-06/0.5348, allocations: 0 / 0.5872 GB, free: 12.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=141): time 0.03612/0.5709, allocations: 11.58 MB / 0.5985 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.265e-05/0.571, allocations: 192.6 kB / 0.5987 GB, free: 0.668 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00497/0.576, allocations: 3.761 MB / 0.6024 GB, free: 12.91 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002325/0.5763, allocations: 45.7 kB / 0.6024 GB, free: 12.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001866/0.5781, allocations: 2.796 MB / 0.6052 GB, free: 10.04 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006371/0.5788, allocations: 0.5854 MB / 0.6057 GB, free: 9.449 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001367/0.5802, allocations: 1.092 MB / 0.6068 GB, free: 8.348 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.736e-05/0.5803, allocations: 305.1 kB / 0.6071 GB, free: 8.047 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002531/0.5828, allocations: 1.697 MB / 0.6087 GB, free: 6.344 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00477/0.5876, allocations: 5.13 MB / 0.6137 GB, free: 15.48 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008421/0.596, allocations: 7.432 MB / 0.621 GB, free: 6.336 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.627e-05/0.5962, allocations: 36 kB / 0.621 GB, free: 6.301 MB / 462.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01127/0.6074, allocations: 6.807 MB / 0.6277 GB, free: 15.49 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.343e-05/0.6076, allocations: 60.78 kB / 0.6277 GB, free: 15.43 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001337/0.6077, allocations: 120 kB / 0.6279 GB, free: 15.31 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009802/0.6087, allocations: 409.2 kB / 0.6282 GB, free: 14.91 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003856/0.6126, allocations: 1.237 MB / 0.6295 GB, free: 13.67 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003742/0.6163, allocations: 3.337 MB / 0.6327 GB, free: 10.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003611/0.62, allocations: 295.5 kB / 0.633 GB, free: 9.91 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005482/0.6205, allocations: 336 kB / 0.6333 GB, free: 9.582 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.00256/0.6231, allocations: 1.793 MB / 0.6351 GB, free: 7.777 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005428/0.6237, allocations: 325.8 kB / 0.6354 GB, free: 7.457 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003166/0.6268, allocations: 1.849 MB / 0.6372 GB, free: 5.594 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.289e-05/0.6269, allocations: 16 kB / 0.6372 GB, free: 5.578 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/0.6269, allocations: 7.938 kB / 0.6372 GB, free: 5.57 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.6269, allocations: 7.969 kB / 0.6372 GB, free: 5.562 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008669/0.6356, allocations: 5.567 MB / 0.6427 GB, free: 15.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.398e-06/0.6356, allocations: 4 kB / 0.6427 GB, free: 15.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/0.6367, allocations: 215.7 kB / 0.6429 GB, free: 15.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006622/0.6374, allocations: 236.6 kB / 0.6431 GB, free: 15.46 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.515e-05/0.6375, allocations: 24 kB / 0.6431 GB, free: 15.44 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002868/0.6404, allocations: 2.705 MB / 0.6458 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.6404, allocations: 8 kB / 0.6458 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005302/0.6457, allocations: 3.912 MB / 0.6496 GB, free: 8.641 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001314/0.647, allocations: 0.5573 MB / 0.6501 GB, free: 8.062 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003386/0.6474, allocations: 16 kB / 0.6501 GB, free: 8.047 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/0.6485, allocations: 71.91 kB / 0.6502 GB, free: 7.977 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001638/0.6487, allocations: 76.56 kB / 0.6503 GB, free: 7.902 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.858e-05/0.6488, allocations: 39.98 kB / 0.6503 GB, free: 7.863 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003416/0.6522, allocations: 2.35 MB / 0.6526 GB, free: 5.527 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.6522, allocations: 0 / 0.6526 GB, free: 5.527 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003882/0.6561, allocations: 0.8124 MB / 0.6534 GB, free: 4.715 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.005762/0.6619, allocations: 4.549 MB / 0.6579 GB, free: 132 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006508/0.6684, allocations: 4.104 MB / 0.6619 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.231e-06/0.6685, allocations: 8 kB / 0.6619 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001676/0.6701, allocations: 1.146 MB / 0.663 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00289/0.673, allocations: 384.9 kB / 0.6634 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05041/0.7235, allocations: 38.17 MB / 0.7006 GB, free: 15.13 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00273/0.7262, allocations: 2.754 MB / 0.7033 GB, free: 12.35 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003854/0.7301, allocations: 1.762 MB / 0.705 GB, free: 10.59 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002071/0.7322, allocations: 1.507 MB / 0.7065 GB, free: 9.078 MB / 0.545 GB Notification: Performance of SimCode: time 1.473e-06/0.7322, allocations: 4 kB / 0.7065 GB, free: 9.074 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3098/1.042, allocations: 55.51 MB / 0.7607 GB, free: 194.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.88/18.92, allocations: 15.75 kB / 0.7607 GB, free: 194.1 MB / 0.5762 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