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.001364/0.001364, allocations: 110.5 kB / 16.4 MB, free: 6.383 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.001259/0.001259, allocations: 193.9 kB / 17.34 MB, free: 5.832 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.488/1.488, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.226/0.226, allocations: 43.52 MB / 314.1 MB, free: 468 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.002205/0.002205, allocations: 75.83 kB / 441.3 MB, free: 6.188 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1271, allocations: 57.8 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01181/0.139, allocations: 9.417 MB / 0.4966 GB, free: 2.855 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007928/0.1469, allocations: 3.614 MB / 0.5001 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001659/0.1486, allocations: 51.88 kB / 0.5002 GB, free: 15.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004085/0.1527, allocations: 1.682 MB / 0.5018 GB, free: 13.49 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00483/0.1576, allocations: 1.638 MB / 0.5034 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001569/0.1592, allocations: 0.5652 MB / 0.504 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006487/0.1657, allocations: 3.506 MB / 0.5074 GB, free: 7.766 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003732/0.1695, allocations: 2.259 MB / 0.5096 GB, free: 5.457 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002481/0.172, allocations: 1.16 MB / 0.5107 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002809/0.1749, allocations: 1.631 MB / 0.5123 GB, free: 2.656 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007542/0.1757, allocations: 236 kB / 0.5125 GB, free: 2.426 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00259/0.1783, allocations: 1.116 MB / 0.5136 GB, free: 1.309 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00201/0.1803, allocations: 1.508 MB / 0.5151 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002679/0.183, allocations: 1.806 MB / 0.5169 GB, free: 13.98 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0088/0.1918, allocations: 5.972 MB / 0.5227 GB, free: 7.984 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.1919, allocations: 0 / 0.5227 GB, free: 7.984 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1919, allocations: 0 / 0.5227 GB, free: 7.984 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002032/0.1921, allocations: 0 / 0.5227 GB, free: 7.984 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.01173/0.2038, allocations: 4.096 MB / 0.5267 GB, free: 3.812 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.43e-05/0.2039, allocations: 11.89 kB / 0.5267 GB, free: 3.801 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001298/0.2052, allocations: 0.5833 MB / 0.5273 GB, free: 3.207 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.333/0.5382, allocations: 6.986 MB / 0.5341 GB, free: 36.11 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006201/0.5445, allocations: 2.734 MB / 0.5368 GB, free: 35.74 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001893/0.5447, allocations: 176.5 kB / 0.5369 GB, free: 35.73 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009133/0.5456, allocations: 226.2 kB / 0.5372 GB, free: 35.72 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01274/0.5584, allocations: 7.821 MB / 0.5448 GB, free: 32.41 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001137/0.5585, allocations: 41.81 kB / 0.5448 GB, free: 32.38 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003301/0.5589, allocations: 113.8 kB / 0.5449 GB, free: 32.34 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002927/0.5618, allocations: 1.668 MB / 0.5466 GB, free: 32.04 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01261/0.5744, allocations: 6.623 MB / 0.553 GB, free: 29.98 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03806/0.6125, allocations: 31.17 MB / 0.5835 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005154/0.6178, allocations: 2.273 MB / 0.5857 GB, free: 14.08 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001768/0.6196, allocations: 1.12 MB / 0.5868 GB, free: 12.95 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004273/0.62, allocations: 335.6 kB / 0.5871 GB, free: 12.57 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.566e-05/0.6201, allocations: 43.12 kB / 0.5871 GB, free: 12.52 MB / 430.1 MB Notification: Performance of pre-optimization done (n=117): time 4.078e-06/0.6201, allocations: 0 / 0.5871 GB, free: 12.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=141): time 0.03804/0.6581, allocations: 11.57 MB / 0.5985 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001491/0.6583, allocations: 200.6 kB / 0.5986 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006243/0.6646, allocations: 3.761 MB / 0.6023 GB, free: 12.93 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003066/0.6649, allocations: 41.7 kB / 0.6024 GB, free: 12.88 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002474/0.6674, allocations: 2.8 MB / 0.6051 GB, free: 10.06 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008278/0.6683, allocations: 0.5854 MB / 0.6057 GB, free: 9.469 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001706/0.67, allocations: 1.088 MB / 0.6067 GB, free: 8.371 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.6701, allocations: 305.1 kB / 0.607 GB, free: 8.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003136/0.6733, allocations: 1.697 MB / 0.6087 GB, free: 6.367 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007557/0.6809, allocations: 5.138 MB / 0.6137 GB, free: 15.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01089/0.6918, allocations: 7.427 MB / 0.6209 GB, free: 6.359 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001231/0.692, allocations: 36 kB / 0.621 GB, free: 6.324 MB / 462.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01457/0.7066, allocations: 6.813 MB / 0.6276 GB, free: 15.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001065/0.7067, allocations: 56 kB / 0.6277 GB, free: 15.45 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001684/0.7069, allocations: 120.8 kB / 0.6278 GB, free: 15.33 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/0.708, allocations: 408.7 kB / 0.6282 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004275/0.7122, allocations: 1.236 MB / 0.6294 GB, free: 13.69 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004717/0.717, allocations: 3.341 MB / 0.6327 GB, free: 10.21 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004374/0.7214, allocations: 291.6 kB / 0.6329 GB, free: 9.93 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001172/0.7226, allocations: 339.9 kB / 0.6333 GB, free: 9.598 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.00388/0.7265, allocations: 1.79 MB / 0.635 GB, free: 7.797 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009068/0.7274, allocations: 329.8 kB / 0.6353 GB, free: 7.473 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003955/0.7314, allocations: 1.849 MB / 0.6371 GB, free: 5.609 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-05/0.7315, allocations: 16 kB / 0.6371 GB, free: 5.594 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/0.7315, allocations: 7.938 kB / 0.6371 GB, free: 5.586 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.836e-05/0.7315, allocations: 7.969 kB / 0.6372 GB, free: 5.578 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01149/0.743, allocations: 5.56 MB / 0.6426 GB, free: 15.93 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.17e-05/0.743, allocations: 8.062 kB / 0.6426 GB, free: 15.92 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001142/0.7442, allocations: 215.7 kB / 0.6428 GB, free: 15.71 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007702/0.745, allocations: 236.5 kB / 0.643 GB, free: 15.48 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001294/0.7451, allocations: 27.98 kB / 0.6431 GB, free: 15.45 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003633/0.7488, allocations: 2.702 MB / 0.6457 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.7488, allocations: 3.938 kB / 0.6457 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007101/0.7559, allocations: 3.921 MB / 0.6495 GB, free: 8.652 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001644/0.7576, allocations: 0.5495 MB / 0.6501 GB, free: 8.082 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003639/0.7579, allocations: 24 kB / 0.6501 GB, free: 8.059 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001198/0.7592, allocations: 67.91 kB / 0.6501 GB, free: 7.992 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002339/0.7594, allocations: 72.5 kB / 0.6502 GB, free: 7.922 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/0.7595, allocations: 43.98 kB / 0.6503 GB, free: 7.879 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004103/0.7636, allocations: 2.35 MB / 0.6526 GB, free: 5.543 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.7636, allocations: 0 / 0.6526 GB, free: 5.543 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004189/0.7678, allocations: 0.8085 MB / 0.6533 GB, free: 4.734 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.006606/0.7745, allocations: 4.553 MB / 0.6578 GB, free: 148 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007189/0.7817, allocations: 4.102 MB / 0.6618 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.7817, allocations: 5.062 kB / 0.6618 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001883/0.7836, allocations: 1.151 MB / 0.6629 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002336/0.7859, allocations: 385.1 kB / 0.6633 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0636/0.8496, allocations: 38.16 MB / 0.7006 GB, free: 15.15 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003896/0.8535, allocations: 2.758 MB / 0.7033 GB, free: 12.37 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004557/0.8581, allocations: 1.758 MB / 0.705 GB, free: 10.61 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003239/0.8614, allocations: 1.511 MB / 0.7064 GB, free: 9.094 MB / 0.545 GB Notification: Performance of SimCode: time 1.242e-06/0.8614, allocations: 0 / 0.7064 GB, free: 9.094 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3766/1.238, allocations: 55.51 MB / 0.7607 GB, free: 194 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.95/21.19, allocations: 7.812 kB / 0.7607 GB, free: 194 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