Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Distance2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2",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.001534/0.001534, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001837/0.001837, allocations: 191.9 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 222.9 MB / 242.3 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1999/0.1999, allocations: 44.18 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 60.48 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1123, allocations: 60.83 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01084/0.1232, allocations: 9.235 MB / 478.6 MB, free: 4.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006545/0.1298, allocations: 3.582 MB / 482.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001247/0.1311, allocations: 51.88 kB / 482.2 MB, free: 1.336 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003819/0.1349, allocations: 1.935 MB / 484.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003964/0.1389, allocations: 1.654 MB / 485.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001376/0.1403, allocations: 0.5575 MB / 486.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004991/0.1453, allocations: 3.708 MB / 490.1 MB, free: 9.461 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003657/0.149, allocations: 2.472 MB / 492.6 MB, free: 6.934 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002166/0.1512, allocations: 1.191 MB / 493.7 MB, free: 5.738 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002515/0.1537, allocations: 1.678 MB / 495.4 MB, free: 4.055 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009038/0.1547, allocations: 248 kB / 495.7 MB, free: 3.812 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002416/0.1571, allocations: 1.139 MB / 496.8 MB, free: 2.672 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001971/0.1591, allocations: 1.57 MB / 498.4 MB, free: 1.098 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002992/0.1621, allocations: 1.86 MB / 0.4885 GB, free: 15.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007139/0.1692, allocations: 5.904 MB / 0.4943 GB, free: 9.305 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.1693, allocations: 4 kB / 0.4943 GB, free: 9.301 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1693, allocations: 0 / 0.4943 GB, free: 9.301 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001773/0.1695, allocations: 0 / 0.4943 GB, free: 9.301 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: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.01047/0.18, allocations: 4.083 MB / 0.4983 GB, free: 5.152 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.18, allocations: 15.97 kB / 0.4983 GB, free: 5.137 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001269/0.1813, allocations: 0.6002 MB / 0.4989 GB, free: 4.527 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2971/0.4784, allocations: 6.993 MB / 0.5057 GB, free: 45.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006201/0.4847, allocations: 2.579 MB / 0.5082 GB, free: 44.65 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001837/0.4849, allocations: 182.5 kB / 0.5084 GB, free: 44.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009527/0.4859, allocations: 244.3 kB / 0.5086 GB, free: 44.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01687/0.5028, allocations: 8.095 MB / 0.5165 GB, free: 40.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001658/0.503, allocations: 40.16 kB / 0.5166 GB, free: 40.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006577/0.5036, allocations: 119.7 kB / 0.5167 GB, free: 40.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002665/0.5063, allocations: 1.703 MB / 0.5183 GB, free: 40.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01048/0.5168, allocations: 6.768 MB / 0.525 GB, free: 37.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02738/0.5442, allocations: 32.18 MB / 0.5564 GB, free: 4.434 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003928/0.5482, allocations: 2.407 MB / 0.5587 GB, free: 1.879 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.5492, allocations: 1.069 MB / 0.5598 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002567/0.5495, allocations: 323.1 kB / 0.5601 GB, free: 436 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/0.5495, allocations: 46.52 kB / 0.5601 GB, free: 380 kB / 382.1 MB Notification: Performance of pre-optimization done (n=104): time 3.797e-06/0.5496, allocations: 3.938 kB / 0.5601 GB, free: 376 kB / 382.1 MB Notification: Performance of matching and sorting (n=118): time 0.02204/0.5716, allocations: 8.468 MB / 0.5684 GB, free: 7.785 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.5718, allocations: 200.4 kB / 0.5686 GB, free: 7.547 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006567/0.5783, allocations: 3.822 MB / 0.5723 GB, free: 3.734 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001673/0.5785, allocations: 41.7 kB / 0.5724 GB, free: 3.688 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00226/0.5808, allocations: 2.797 MB / 0.5751 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006276/0.5814, allocations: 0.4911 MB / 0.5756 GB, free: 360 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001961/0.5834, allocations: 1.099 MB / 0.5766 GB, free: 15.24 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.699e-05/0.5835, allocations: 305.1 kB / 0.5769 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002477/0.586, allocations: 1.596 MB / 0.5785 GB, free: 13.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005208/0.5912, allocations: 5.212 MB / 0.5836 GB, free: 6.297 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008272/0.5995, allocations: 7.413 MB / 0.5908 GB, free: 13.08 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001276/0.5997, allocations: 36 kB / 0.5909 GB, free: 13.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=707) (initialization): time 0.01221/0.6119, allocations: 6.707 MB / 0.5974 GB, free: 6.328 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001323/0.6121, allocations: 66.56 kB / 0.5975 GB, free: 6.266 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001831/0.6122, allocations: 131.9 kB / 0.5976 GB, free: 6.137 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009829/0.6132, allocations: 414.2 kB / 0.598 GB, free: 5.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00357/0.6168, allocations: 1.244 MB / 0.5992 GB, free: 4.484 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003803/0.6206, allocations: 3.333 MB / 0.6025 GB, free: 1.012 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003902/0.6246, allocations: 287.4 kB / 0.6027 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006991/0.6253, allocations: 344 kB / 0.6031 GB, free: 404 kB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.arrowLine.twoHeadedArrow,distance1.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (672): * Single equations (assignments): 668 * 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.003005/0.6283, allocations: 1.842 MB / 0.6049 GB, free: 14.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007048/0.629, allocations: 312.1 kB / 0.6052 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002804/0.6318, allocations: 1.478 MB / 0.6066 GB, free: 12.75 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.684e-05/0.6319, allocations: 16 kB / 0.6066 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.6319, allocations: 0 / 0.6066 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.598e-05/0.6319, allocations: 11.97 kB / 0.6066 GB, free: 12.72 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009855/0.6418, allocations: 4.983 MB / 0.6115 GB, free: 7.676 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.6418, allocations: 0 / 0.6115 GB, free: 7.676 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007928/0.6426, allocations: 163.7 kB / 0.6117 GB, free: 7.516 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006593/0.6433, allocations: 228.6 kB / 0.6119 GB, free: 7.289 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.357e-05/0.6434, allocations: 16 kB / 0.6119 GB, free: 7.273 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002894/0.6463, allocations: 2.71 MB / 0.6145 GB, free: 4.422 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.6463, allocations: 4.031 kB / 0.6145 GB, free: 4.418 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004483/0.6508, allocations: 3.283 MB / 0.6177 GB, free: 1.113 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008899/0.6517, allocations: 364.8 kB / 0.6181 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005414/0.6522, allocations: 19.98 kB / 0.6181 GB, free: 0.7148 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001177/0.6534, allocations: 43.95 kB / 0.6182 GB, free: 0.6719 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.6536, allocations: 64.53 kB / 0.6182 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-05/0.6537, allocations: 32 kB / 0.6182 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004031/0.6577, allocations: 2.379 MB / 0.6206 GB, free: 14.21 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.6577, allocations: 0 / 0.6206 GB, free: 14.21 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004178/0.6619, allocations: 0.7956 MB / 0.6213 GB, free: 13.42 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * 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.005113/0.667, allocations: 3.911 MB / 0.6252 GB, free: 9.473 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00666/0.6737, allocations: 4.133 MB / 0.6292 GB, free: 5.371 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/0.6737, allocations: 4.062 kB / 0.6292 GB, free: 5.367 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001459/0.6752, allocations: 0.9464 MB / 0.6301 GB, free: 4.406 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002719/0.6779, allocations: 395.6 kB / 0.6305 GB, free: 4.023 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05887/0.7368, allocations: 42.31 MB / 0.6718 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0043/0.7412, allocations: 2.805 MB / 0.6746 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004391/0.7456, allocations: 1.711 MB / 0.6762 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002061/0.7477, allocations: 1.522 MB / 0.6777 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of SimCode: time 1.654e-06/0.7477, allocations: 0 / 0.6777 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3129/1.061, allocations: 58.83 MB / 0.7352 GB, free: 179.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.87, allocations: 6.312 kB / 0.7352 GB, free: 179.3 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches