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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 111.1 kB / 20.44 MB, free: 1.352 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002575/0.002575, allocations: 213.3 kB / 23.73 MB, free: 4.531 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.512/1.512, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2144/0.2144, allocations: 44.93 MB / 358.8 MB, free: 6.062 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002042/0.002042, allocations: 67.91 kB / 0.493 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3419/0.3439, allocations: 65.48 MB / 0.557 GB, free: 7.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01152/0.3554, allocations: 8.024 MB / 0.5648 GB, free: 15.47 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007493/0.3629, allocations: 3.388 MB / 0.5681 GB, free: 12.07 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001244/0.3642, allocations: 55.75 kB / 0.5682 GB, free: 12.02 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003897/0.3681, allocations: 1.873 MB / 0.57 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004049/0.3721, allocations: 1.619 MB / 0.5716 GB, free: 8.516 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001309/0.3734, allocations: 0.5692 MB / 0.5721 GB, free: 7.945 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00513/0.3786, allocations: 3.662 MB / 0.5757 GB, free: 4.277 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002966/0.3815, allocations: 1.987 MB / 0.5776 GB, free: 2.23 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002125/0.3837, allocations: 1.187 MB / 0.5788 GB, free: 1.039 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002768/0.3864, allocations: 1.693 MB / 0.5805 GB, free: 15.34 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006442/0.3871, allocations: 240 kB / 0.5807 GB, free: 15.11 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002015/0.3891, allocations: 1.022 MB / 0.5817 GB, free: 14.08 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00157/0.3907, allocations: 1.55 MB / 0.5832 GB, free: 12.53 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001475/0.3921, allocations: 1.316 MB / 0.5845 GB, free: 11.2 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006446/0.3986, allocations: 5.895 MB / 0.5902 GB, free: 5.285 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3986, allocations: 0 / 0.5902 GB, free: 5.285 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3986, allocations: 0 / 0.5902 GB, free: 5.285 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001032/0.3987, allocations: 0 / 0.5902 GB, free: 5.285 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.00884/0.4075, allocations: 3.982 MB / 0.5941 GB, free: 1.246 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/0.4076, allocations: 12.03 kB / 0.5941 GB, free: 1.234 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00083/0.4084, allocations: 0.5753 MB / 0.5947 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08452/0.4929, allocations: 6.962 MB / 0.6015 GB, free: 9.676 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006375/0.4993, allocations: 2.411 MB / 0.6039 GB, free: 7.227 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001821/0.4995, allocations: 176.8 kB / 0.604 GB, free: 7.051 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008454/0.5003, allocations: 243.8 kB / 0.6043 GB, free: 6.812 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01356/0.5139, allocations: 7.778 MB / 0.6119 GB, free: 14.37 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000116/0.514, allocations: 39.64 kB / 0.6119 GB, free: 14.33 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003219/0.5143, allocations: 119.9 kB / 0.612 GB, free: 14.21 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002748/0.5171, allocations: 1.582 MB / 0.6135 GB, free: 12.62 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0123/0.5294, allocations: 6.441 MB / 0.6198 GB, free: 6.176 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03919/0.5686, allocations: 30.15 MB / 0.6493 GB, free: 7.047 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004682/0.5732, allocations: 1.897 MB / 0.6511 GB, free: 5.113 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001453/0.5747, allocations: 0.9794 MB / 0.6521 GB, free: 4.121 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002695/0.575, allocations: 87.88 kB / 0.6522 GB, free: 4.035 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.794e-05/0.575, allocations: 50.55 kB / 0.6522 GB, free: 3.977 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.666e-06/0.575, allocations: 0 / 0.6522 GB, free: 3.977 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02165/0.5967, allocations: 8.435 MB / 0.6605 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001314/0.5968, allocations: 192.4 kB / 0.6606 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006143/0.6029, allocations: 3.978 MB / 0.6645 GB, free: 7.281 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002653/0.6032, allocations: 41.7 kB / 0.6646 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002604/0.6058, allocations: 2.83 MB / 0.6673 GB, free: 4.375 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007195/0.6065, allocations: 0.508 MB / 0.6678 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001488/0.608, allocations: 1.095 MB / 0.6689 GB, free: 2.758 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001327/0.6081, allocations: 301.1 kB / 0.6692 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002474/0.6106, allocations: 1.584 MB / 0.6707 GB, free: 0.8711 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005971/0.6166, allocations: 5.199 MB / 0.6758 GB, free: 9.859 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009507/0.6261, allocations: 7.318 MB / 0.683 GB, free: 0.7695 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001164/0.6262, allocations: 36 kB / 0.683 GB, free: 0.7344 MB / 0.5137 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01281/0.639, allocations: 6.634 MB / 0.6895 GB, free: 10.09 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.926e-05/0.6391, allocations: 64.06 kB / 0.6895 GB, free: 10.03 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001599/0.6393, allocations: 128 kB / 0.6896 GB, free: 9.906 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009319/0.6402, allocations: 404.5 kB / 0.69 GB, free: 9.508 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003812/0.644, allocations: 1.22 MB / 0.6912 GB, free: 8.285 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004087/0.6481, allocations: 3.205 MB / 0.6944 GB, free: 4.969 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003708/0.6518, allocations: 295.7 kB / 0.6946 GB, free: 4.68 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007589/0.6526, allocations: 336 kB / 0.695 GB, free: 4.352 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.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 (663): * Single equations (assignments): 659 * 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.003117/0.6557, allocations: 1.779 MB / 0.6967 GB, free: 2.559 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000669/0.6564, allocations: 321.8 kB / 0.697 GB, free: 2.242 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002942/0.6593, allocations: 1.465 MB / 0.6984 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.314e-05/0.6593, allocations: 16 kB / 0.6984 GB, free: 0.7461 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/0.6593, allocations: 3.938 kB / 0.6985 GB, free: 0.7422 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.437e-05/0.6594, allocations: 8.359 kB / 0.6985 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009647/0.669, allocations: 4.606 MB / 0.703 GB, free: 12.07 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.105e-05/0.669, allocations: 4 kB / 0.703 GB, free: 12.07 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007933/0.6698, allocations: 159.8 kB / 0.7031 GB, free: 11.91 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007024/0.6705, allocations: 228.5 kB / 0.7033 GB, free: 11.68 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.893e-05/0.6706, allocations: 20 kB / 0.7034 GB, free: 11.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003266/0.6739, allocations: 2.58 MB / 0.7059 GB, free: 8.969 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.6739, allocations: 4.031 kB / 0.7059 GB, free: 8.965 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004973/0.6788, allocations: 3.296 MB / 0.7091 GB, free: 5.641 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009168/0.6798, allocations: 297.7 kB / 0.7094 GB, free: 5.348 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003052/0.6801, allocations: 12 kB / 0.7094 GB, free: 5.336 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009535/0.681, allocations: 51.94 kB / 0.7094 GB, free: 5.285 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002029/0.6812, allocations: 72.25 kB / 0.7095 GB, free: 5.215 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.56e-05/0.6813, allocations: 35.94 kB / 0.7095 GB, free: 5.18 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00407/0.6854, allocations: 2.347 MB / 0.7118 GB, free: 2.848 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.51e-07/0.6854, allocations: 0 / 0.7118 GB, free: 2.848 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004452/0.6898, allocations: 0.7655 MB / 0.7126 GB, free: 2.082 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.005969/0.6958, allocations: 3.919 MB / 0.7164 GB, free: 14.13 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008366/0.7042, allocations: 3.665 MB / 0.72 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.814e-06/0.7042, allocations: 0 / 0.72 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001644/0.7058, allocations: 0.899 MB / 0.7209 GB, free: 9.57 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002338/0.7081, allocations: 378.5 kB / 0.7212 GB, free: 9.207 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3063/1.014, allocations: 37.27 MB / 0.7576 GB, free: 134.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002038/1.016, allocations: 2.154 MB / 0.7597 GB, free: 132.4 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00304/1.019, allocations: 1.707 MB / 0.7614 GB, free: 130.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001481/1.021, allocations: 1.46 MB / 0.7628 GB, free: 129.4 MB / 0.5606 GB Notification: Performance of SimCode: time 1.343e-06/1.021, allocations: 0 / 0.7628 GB, free: 129.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0856/1.107, allocations: 54.34 MB / 0.8159 GB, free: 75.79 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.46/16.56, allocations: 7.188 kB / 0.8159 GB, free: 75.79 MB / 0.5606 GB " [Timeout remaining time 643] (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 --stepSize=9.996e-05 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 20.05632821796462]