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.001859/0.001859, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002349/0.002349, allocations: 208.6 kB / 18.58 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.51/1.51, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2346/0.2346, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002459/0.002459, allocations: 77.22 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1507, allocations: 62.44 MB / 480.1 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.0113/0.1621, allocations: 8.918 MB / 489 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007383/0.1695, allocations: 3.551 MB / 492.6 MB, free: 8.688 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001406/0.1709, allocations: 47.88 kB / 492.6 MB, free: 8.641 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003458/0.1744, allocations: 1.67 MB / 494.3 MB, free: 6.965 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004662/0.1792, allocations: 1.537 MB / 495.8 MB, free: 5.422 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001718/0.1809, allocations: 0.5575 MB / 496.4 MB, free: 4.863 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005295/0.1862, allocations: 3.556 MB / 500 MB, free: 1.301 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003494/0.1897, allocations: 2.197 MB / 0.4904 GB, free: 15.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001961/0.1917, allocations: 1.086 MB / 0.4914 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002438/0.1942, allocations: 1.534 MB / 0.4929 GB, free: 12.42 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007964/0.195, allocations: 220 kB / 0.4932 GB, free: 12.21 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002483/0.1975, allocations: 1.096 MB / 0.4942 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001725/0.1992, allocations: 1.406 MB / 0.4956 GB, free: 9.699 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003005/0.2023, allocations: 1.685 MB / 0.4972 GB, free: 8.004 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008124/0.2104, allocations: 5.351 MB / 0.5025 GB, free: 2.637 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.2104, allocations: 0 / 0.5025 GB, free: 2.637 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2105, allocations: 0 / 0.5025 GB, free: 2.637 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002198/0.2107, allocations: 4 kB / 0.5025 GB, free: 2.633 MB / 382.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.257/0.4677, allocations: 3.781 MB / 0.5062 GB, free: 39.15 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.4678, allocations: 9.281 kB / 0.5062 GB, free: 39.15 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001025/0.4688, allocations: 0.5408 MB / 0.5067 GB, free: 38.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0921/0.5609, allocations: 6.93 MB / 0.5135 GB, free: 38.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006116/0.5671, allocations: 2.362 MB / 0.5158 GB, free: 37.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001357/0.5672, allocations: 158.5 kB / 0.5159 GB, free: 37.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006417/0.5679, allocations: 220.2 kB / 0.5161 GB, free: 37.17 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009459/0.5774, allocations: 7.348 MB / 0.5233 GB, free: 32.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.877e-05/0.5775, allocations: 36.03 kB / 0.5234 GB, free: 32.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002734/0.5777, allocations: 106.3 kB / 0.5235 GB, free: 32.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002089/0.5798, allocations: 1.543 MB / 0.525 GB, free: 31.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009254/0.5891, allocations: 6.19 MB / 0.531 GB, free: 26.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02665/0.6158, allocations: 29.98 MB / 0.5603 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004534/0.6204, allocations: 2.165 MB / 0.5624 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001383/0.6218, allocations: 1.075 MB / 0.5634 GB, free: 7.945 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003771/0.6222, allocations: 319.6 kB / 0.5638 GB, free: 7.578 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.981e-05/0.6222, allocations: 51.09 kB / 0.5638 GB, free: 7.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 2.945e-06/0.6222, allocations: 3.938 kB / 0.5638 GB, free: 7.516 MB / 398.1 MB Notification: Performance of matching and sorting (n=132): time 0.03534/0.6576, allocations: 10.87 MB / 0.5744 GB, free: 12.52 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.6577, allocations: 196.6 kB / 0.5746 GB, free: 12.29 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00597/0.6637, allocations: 3.609 MB / 0.5781 GB, free: 8.676 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002857/0.664, allocations: 49.7 kB / 0.5782 GB, free: 8.621 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00193/0.666, allocations: 2.558 MB / 0.5807 GB, free: 6.027 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006475/0.6666, allocations: 0.5247 MB / 0.5812 GB, free: 5.496 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001759/0.6684, allocations: 1.051 MB / 0.5822 GB, free: 4.434 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.6685, allocations: 301.1 kB / 0.5825 GB, free: 4.137 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002577/0.6711, allocations: 1.634 MB / 0.5841 GB, free: 2.496 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005731/0.6769, allocations: 4.962 MB / 0.5889 GB, free: 11.85 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009755/0.6867, allocations: 7.169 MB / 0.5959 GB, free: 3.023 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000114/0.6868, allocations: 40 kB / 0.596 GB, free: 2.984 MB / 430.1 MB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01361/0.7004, allocations: 6.557 MB / 0.6024 GB, free: 12.42 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000131/0.7006, allocations: 56 kB / 0.6024 GB, free: 12.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001785/0.7008, allocations: 120 kB / 0.6025 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009511/0.7018, allocations: 401.3 kB / 0.6029 GB, free: 11.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003632/0.7054, allocations: 1.185 MB / 0.6041 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003578/0.709, allocations: 3.316 MB / 0.6073 GB, free: 7.211 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003725/0.7127, allocations: 295.4 kB / 0.6076 GB, free: 6.922 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007936/0.7136, allocations: 328 kB / 0.6079 GB, free: 6.602 MB / 446.1 MB 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.002901/0.7165, allocations: 1.696 MB / 0.6096 GB, free: 4.895 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007589/0.7172, allocations: 304 kB / 0.6099 GB, free: 4.594 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003314/0.7206, allocations: 1.721 MB / 0.6115 GB, free: 2.859 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.918e-05/0.7206, allocations: 12 kB / 0.6116 GB, free: 2.848 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.819e-06/0.7206, allocations: 4 kB / 0.6116 GB, free: 2.844 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.61e-05/0.7207, allocations: 11.97 kB / 0.6116 GB, free: 2.832 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0106/0.7313, allocations: 5.298 MB / 0.6168 GB, free: 13.44 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.481e-05/0.7313, allocations: 3.828 kB / 0.6168 GB, free: 13.44 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/0.7324, allocations: 199.7 kB / 0.6169 GB, free: 13.25 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007579/0.7332, allocations: 232.6 kB / 0.6172 GB, free: 13.02 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001391/0.7333, allocations: 23.98 kB / 0.6172 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003256/0.7366, allocations: 2.686 MB / 0.6198 GB, free: 10.17 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.7366, allocations: 8.062 kB / 0.6198 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005378/0.742, allocations: 3.722 MB / 0.6235 GB, free: 6.41 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009779/0.743, allocations: 353.1 kB / 0.6238 GB, free: 6.043 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007258/0.7438, allocations: 20 kB / 0.6238 GB, free: 6.023 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001616/0.7454, allocations: 59.92 kB / 0.6239 GB, free: 5.965 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002276/0.7456, allocations: 76.5 kB / 0.6239 GB, free: 5.891 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001041/0.7457, allocations: 39.98 kB / 0.624 GB, free: 5.852 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004266/0.75, allocations: 2.265 MB / 0.6262 GB, free: 3.598 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.75, allocations: 0 / 0.6262 GB, free: 3.598 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004313/0.7544, allocations: 0.7551 MB / 0.6269 GB, free: 2.848 MB / 462.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 (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.006248/0.7606, allocations: 4.332 MB / 0.6312 GB, free: 14.48 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007316/0.768, allocations: 4.29 MB / 0.6353 GB, free: 10.21 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/0.768, allocations: 0 / 0.6353 GB, free: 10.21 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001724/0.7698, allocations: 1.068 MB / 0.6364 GB, free: 9.129 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003681/0.7735, allocations: 373 kB / 0.6367 GB, free: 8.77 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06305/0.8365, allocations: 40.62 MB / 0.6764 GB, free: 9.594 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00411/0.8407, allocations: 2.635 MB / 0.679 GB, free: 6.934 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005038/0.8458, allocations: 1.679 MB / 0.6806 GB, free: 5.25 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002794/0.8486, allocations: 1.413 MB / 0.682 GB, free: 3.836 MB / 0.5137 GB Notification: Performance of SimCode: time 2.044e-06/0.8486, allocations: 0 / 0.682 GB, free: 3.836 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3372/1.186, allocations: 57.24 MB / 0.7379 GB, free: 163.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/12.43, allocations: 4.594 kB / 0.7379 GB, free: 163.8 MB / 0.5294 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