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.001366/0.001366, allocations: 113.2 kB / 17.78 MB, free: 5.129 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.001671/0.001671, allocations: 181 kB / 18.71 MB, free: 4.207 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.382/1.382, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.2247/0.2247, allocations: 44.18 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 63.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3213/0.3227, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01117/0.3339, allocations: 9.238 MB / 0.5274 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01003/0.344, allocations: 3.585 MB / 0.5309 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002329/0.3464, allocations: 50.34 kB / 0.531 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004616/0.351, allocations: 1.931 MB / 0.5329 GB, free: 8.996 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004935/0.356, allocations: 1.685 MB / 0.5345 GB, free: 7.82 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001544/0.3576, allocations: 0.5708 MB / 0.5351 GB, free: 7.445 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005518/0.3631, allocations: 3.704 MB / 0.5387 GB, free: 5.422 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003546/0.3667, allocations: 2.464 MB / 0.5411 GB, free: 3.945 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002359/0.3691, allocations: 1.205 MB / 0.5423 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002767/0.3719, allocations: 1.675 MB / 0.5439 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008925/0.3728, allocations: 248 kB / 0.5442 GB, free: 1.684 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002497/0.3753, allocations: 1.139 MB / 0.5453 GB, free: 0.543 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001914/0.3772, allocations: 1.586 MB / 0.5468 GB, free: 14.95 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002839/0.3801, allocations: 1.864 MB / 0.5486 GB, free: 13.08 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009539/0.3897, allocations: 6.136 MB / 0.5546 GB, free: 6.918 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.35e-05/0.3898, allocations: 3.938 kB / 0.5546 GB, free: 6.914 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3898, allocations: 0 / 0.5546 GB, free: 6.914 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003213/0.3901, allocations: 0 / 0.5546 GB, free: 6.914 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: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.01184/0.402, allocations: 4.199 MB / 0.5587 GB, free: 2.641 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.402, allocations: 12.03 kB / 0.5587 GB, free: 2.629 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001294/0.4033, allocations: 0.6002 MB / 0.5593 GB, free: 2.02 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08942/0.4928, allocations: 7.017 MB / 0.5662 GB, free: 10.99 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006877/0.4997, allocations: 2.62 MB / 0.5687 GB, free: 8.309 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001848/0.4999, allocations: 181 kB / 0.5689 GB, free: 8.129 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001089/0.501, allocations: 255.7 kB / 0.5692 GB, free: 7.879 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01437/0.5154, allocations: 8.087 MB / 0.5771 GB, free: 15.15 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001343/0.5156, allocations: 35.7 kB / 0.5771 GB, free: 15.12 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006007/0.5162, allocations: 123.9 kB / 0.5772 GB, free: 15 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002886/0.5191, allocations: 1.715 MB / 0.5789 GB, free: 13.28 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01232/0.5314, allocations: 6.771 MB / 0.5855 GB, free: 6.504 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04109/0.5726, allocations: 32.09 MB / 0.6168 GB, free: 5.41 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00532/0.5779, allocations: 2.407 MB / 0.6192 GB, free: 2.855 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001462/0.5794, allocations: 1.061 MB / 0.6202 GB, free: 1.781 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000415/0.5799, allocations: 323.2 kB / 0.6205 GB, free: 1.41 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.746e-05/0.58, allocations: 54.45 kB / 0.6206 GB, free: 1.348 MB / 478.1 MB Notification: Performance of pre-optimization done (n=104): time 4.489e-06/0.58, allocations: 0 / 0.6206 GB, free: 1.348 MB / 478.1 MB Notification: Performance of matching and sorting (n=118): time 0.02519/0.6052, allocations: 8.671 MB / 0.629 GB, free: 8.582 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/0.6053, allocations: 196.5 kB / 0.6292 GB, free: 8.348 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00675/0.6121, allocations: 3.827 MB / 0.633 GB, free: 4.531 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002533/0.6124, allocations: 41.7 kB / 0.633 GB, free: 4.484 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002299/0.6147, allocations: 2.931 MB / 0.6359 GB, free: 1.523 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007187/0.6154, allocations: 0.5003 MB / 0.6364 GB, free: 1.02 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001998/0.6175, allocations: 1.115 MB / 0.6374 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.519e-05/0.6176, allocations: 301.1 kB / 0.6377 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00257/0.6201, allocations: 1.603 MB / 0.6393 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005235/0.6254, allocations: 5.208 MB / 0.6444 GB, free: 6.953 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008936/0.6344, allocations: 7.414 MB / 0.6516 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001304/0.6345, allocations: 36 kB / 0.6517 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of matching and sorting (n=707) (initialization): time 0.01409/0.6487, allocations: 6.718 MB / 0.6582 GB, free: 6.977 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001798/0.6489, allocations: 60 kB / 0.6583 GB, free: 6.918 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000253/0.6491, allocations: 128 kB / 0.6584 GB, free: 6.793 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/0.6503, allocations: 417 kB / 0.6588 GB, free: 6.383 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004214/0.6545, allocations: 1.236 MB / 0.66 GB, free: 5.145 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004124/0.6587, allocations: 3.328 MB / 0.6633 GB, free: 1.676 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004343/0.6631, allocations: 299.7 kB / 0.6635 GB, free: 1.383 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001016/0.6641, allocations: 344.4 kB / 0.6639 GB, free: 1.047 MB / 0.5137 GB 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.00394/0.6681, allocations: 1.838 MB / 0.6657 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008552/0.6689, allocations: 329.7 kB / 0.666 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003279/0.6722, allocations: 1.467 MB / 0.6674 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.912e-05/0.6723, allocations: 19.94 kB / 0.6674 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/0.6723, allocations: 4 kB / 0.6674 GB, free: 13.37 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.619e-05/0.6723, allocations: 11.97 kB / 0.6674 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01271/0.6851, allocations: 4.971 MB / 0.6723 GB, free: 8.324 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.409e-05/0.6851, allocations: 0 / 0.6723 GB, free: 8.324 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008242/0.686, allocations: 159.8 kB / 0.6725 GB, free: 8.168 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007015/0.6867, allocations: 224.6 kB / 0.6727 GB, free: 7.945 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001368/0.6868, allocations: 23.98 kB / 0.6727 GB, free: 7.922 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003093/0.6899, allocations: 2.7 MB / 0.6753 GB, free: 5.078 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.69, allocations: 0 / 0.6753 GB, free: 5.078 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005356/0.6953, allocations: 3.311 MB / 0.6786 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009911/0.6964, allocations: 382.8 kB / 0.6789 GB, free: 1.348 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006693/0.697, allocations: 16 kB / 0.6789 GB, free: 1.332 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001383/0.6984, allocations: 55.88 kB / 0.679 GB, free: 1.277 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000211/0.6987, allocations: 52.48 kB / 0.679 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.202e-05/0.6988, allocations: 32 kB / 0.6791 GB, free: 1.195 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004257/0.703, allocations: 2.379 MB / 0.6814 GB, free: 14.83 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.72e-07/0.7031, allocations: 0 / 0.6814 GB, free: 14.83 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004607/0.7077, allocations: 0.8045 MB / 0.6822 GB, free: 14.03 MB / 0.545 GB 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.005436/0.7131, allocations: 3.922 MB / 0.686 GB, free: 10.07 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006228/0.7194, allocations: 3.854 MB / 0.6898 GB, free: 6.23 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.7194, allocations: 0 / 0.6898 GB, free: 6.23 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001464/0.7209, allocations: 0.9542 MB / 0.6907 GB, free: 5.266 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002568/0.7235, allocations: 402.6 kB / 0.6911 GB, free: 4.875 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3115/1.035, allocations: 37.86 MB / 0.7281 GB, free: 183.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003787/1.039, allocations: 2.801 MB / 0.7308 GB, free: 182.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003774/1.043, allocations: 1.728 MB / 0.7325 GB, free: 182.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001804/1.044, allocations: 1.522 MB / 0.734 GB, free: 181.2 MB / 0.5762 GB Notification: Performance of SimCode: time 1.453e-06/1.044, allocations: 0 / 0.734 GB, free: 181.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08963/1.134, allocations: 55.14 MB / 0.7878 GB, free: 136.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.05/25.18, allocations: 18.81 kB / 0.7878 GB, free: 136.3 MB / 0.5762 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-10 --interface-type ModelExchange --solver CVode --output-interval 0.0002 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.csv","/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