Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.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.00169/0.00169, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002051/0.002051, allocations: 214.7 kB / 24.51 MB, free: 3.918 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.477/1.477, allocations: 230.6 MB / 258.3 MB, free: 7.727 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.2193/0.2193, allocations: 44.92 MB / 359.6 MB, free: 6.051 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.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="cs",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.002033/0.002033, allocations: 67.89 kB / 0.4938 GB, free: 10.54 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.313, allocations: 65.46 MB / 0.5577 GB, free: 7.344 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01024/0.3233, allocations: 7.886 MB / 0.5654 GB, free: 15.63 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007107/0.3304, allocations: 3.357 MB / 0.5687 GB, free: 12.26 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001061/0.3314, allocations: 55.75 kB / 0.5687 GB, free: 12.21 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00322/0.3347, allocations: 1.62 MB / 0.5703 GB, free: 10.58 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003821/0.3385, allocations: 1.584 MB / 0.5719 GB, free: 8.992 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001381/0.3399, allocations: 0.5653 MB / 0.5724 GB, free: 8.426 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005321/0.3452, allocations: 3.58 MB / 0.5759 GB, free: 4.84 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002973/0.3482, allocations: 1.817 MB / 0.5777 GB, free: 2.965 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002118/0.3503, allocations: 1.125 MB / 0.5788 GB, free: 1.836 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002739/0.353, allocations: 1.663 MB / 0.5804 GB, free: 172 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007071/0.3537, allocations: 220 kB / 0.5806 GB, free: 15.95 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002204/0.3559, allocations: 1.014 MB / 0.5816 GB, free: 14.94 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001791/0.3577, allocations: 1.449 MB / 0.583 GB, free: 13.48 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00213/0.3598, allocations: 1.242 MB / 0.5842 GB, free: 12.23 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006895/0.3667, allocations: 5.591 MB / 0.5897 GB, free: 6.621 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.3667, allocations: 4 kB / 0.5897 GB, free: 6.617 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3667, allocations: 0 / 0.5897 GB, free: 6.617 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001507/0.3669, allocations: 0 / 0.5897 GB, free: 6.617 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.009274/0.3762, allocations: 3.816 MB / 0.5934 GB, free: 2.746 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.3762, allocations: 8.031 kB / 0.5934 GB, free: 2.738 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.844e-05/0.3763, allocations: 76.39 kB / 0.5935 GB, free: 2.66 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007291/0.377, allocations: 0.5423 MB / 0.594 GB, free: 2.105 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07844/0.4555, allocations: 6.943 MB / 0.6008 GB, free: 11.15 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005877/0.4614, allocations: 2.349 MB / 0.6031 GB, free: 8.766 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001457/0.4615, allocations: 160.2 kB / 0.6033 GB, free: 8.605 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006254/0.4621, allocations: 219.8 kB / 0.6035 GB, free: 8.391 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01143/0.4736, allocations: 7.39 MB / 0.6107 GB, free: 372 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.429e-05/0.4736, allocations: 35.7 kB / 0.6107 GB, free: 336 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002956/0.4739, allocations: 107.9 kB / 0.6108 GB, free: 228 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002632/0.4766, allocations: 1.542 MB / 0.6123 GB, free: 14.68 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01078/0.4873, allocations: 6.182 MB / 0.6184 GB, free: 8.48 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03402/0.5214, allocations: 28.75 MB / 0.6465 GB, free: 10.81 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004589/0.526, allocations: 1.639 MB / 0.6481 GB, free: 9.137 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001454/0.5274, allocations: 0.9807 MB / 0.649 GB, free: 8.141 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003316/0.5277, allocations: 92.3 kB / 0.6491 GB, free: 8.051 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.212e-05/0.5278, allocations: 47 kB / 0.6492 GB, free: 7.996 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 4.288e-06/0.5278, allocations: 7.938 kB / 0.6492 GB, free: 7.988 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03434/0.5621, allocations: 10.95 MB / 0.6598 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001305/0.5623, allocations: 192.6 kB / 0.66 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004928/0.5672, allocations: 3.626 MB / 0.6636 GB, free: 9.117 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001477/0.5673, allocations: 41.7 kB / 0.6636 GB, free: 9.07 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00204/0.5694, allocations: 2.659 MB / 0.6662 GB, free: 6.383 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005794/0.57, allocations: 0.5545 MB / 0.6668 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001386/0.5714, allocations: 1.052 MB / 0.6678 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001337/0.5715, allocations: 309.1 kB / 0.6681 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002492/0.574, allocations: 1.63 MB / 0.6697 GB, free: 2.82 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005285/0.5793, allocations: 5.023 MB / 0.6746 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008762/0.588, allocations: 7.16 MB / 0.6816 GB, free: 3.277 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001239/0.5881, allocations: 36 kB / 0.6816 GB, free: 3.242 MB / 0.5137 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01181/0.6, allocations: 6.56 MB / 0.688 GB, free: 12.67 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.915e-05/0.6, allocations: 59.16 kB / 0.6881 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001353/0.6002, allocations: 116 kB / 0.6882 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009525/0.6011, allocations: 404.5 kB / 0.6886 GB, free: 12.11 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003617/0.6048, allocations: 1.189 MB / 0.6897 GB, free: 10.91 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004184/0.6089, allocations: 3.194 MB / 0.6928 GB, free: 7.605 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003744/0.6127, allocations: 287.7 kB / 0.6931 GB, free: 7.324 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006814/0.6134, allocations: 331.9 kB / 0.6934 GB, free: 7 MB / 0.5294 GB 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.002721/0.6161, allocations: 1.701 MB / 0.6951 GB, free: 5.289 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000603/0.6167, allocations: 309.9 kB / 0.6954 GB, free: 4.984 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003291/0.62, allocations: 1.717 MB / 0.6971 GB, free: 3.254 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.681e-05/0.62, allocations: 19.94 kB / 0.6971 GB, free: 3.234 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.699e-06/0.62, allocations: 7.938 kB / 0.6971 GB, free: 3.227 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.62, allocations: 3.984 kB / 0.6971 GB, free: 3.223 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009107/0.6291, allocations: 4.921 MB / 0.7019 GB, free: 14.23 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/0.6292, allocations: 4 kB / 0.7019 GB, free: 14.23 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/0.6302, allocations: 203.7 kB / 0.7021 GB, free: 14.03 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007021/0.6309, allocations: 224.6 kB / 0.7023 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.69e-05/0.631, allocations: 20 kB / 0.7023 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003135/0.6341, allocations: 2.572 MB / 0.7048 GB, free: 11.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.6341, allocations: 4.031 kB / 0.7048 GB, free: 11.09 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005473/0.6396, allocations: 3.725 MB / 0.7085 GB, free: 7.336 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007136/0.6403, allocations: 298 kB / 0.7088 GB, free: 7.043 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003326/0.6407, allocations: 23.94 kB / 0.7088 GB, free: 7.02 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/0.6418, allocations: 71.89 kB / 0.7089 GB, free: 6.949 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001972/0.642, allocations: 80.39 kB / 0.7089 GB, free: 6.871 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.631e-05/0.6421, allocations: 36.06 kB / 0.709 GB, free: 6.836 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00346/0.6455, allocations: 2.261 MB / 0.7112 GB, free: 4.586 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.01e-07/0.6455, allocations: 0 / 0.7112 GB, free: 4.586 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003624/0.6492, allocations: 0.7578 MB / 0.7119 GB, free: 3.828 MB / 0.545 GB 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.005934/0.6551, allocations: 4.358 MB / 0.7162 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006535/0.6616, allocations: 3.794 MB / 0.7199 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.6616, allocations: 0 / 0.7199 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001498/0.6631, allocations: 0.99 MB / 0.7208 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002154/0.6653, allocations: 367.4 kB / 0.7212 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2678/0.9331, allocations: 36.61 MB / 0.7569 GB, free: 136.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001938/0.9351, allocations: 2.075 MB / 0.759 GB, free: 134.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002984/0.938, allocations: 1.7 MB / 0.7606 GB, free: 132.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001355/0.9394, allocations: 1.401 MB / 0.762 GB, free: 131.3 MB / 0.5606 GB Notification: Performance of SimCode: time 1.002e-06/0.9394, allocations: 0 / 0.762 GB, free: 131.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08042/1.02, allocations: 55.61 MB / 0.8163 GB, free: 76.51 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.4/26.42, allocations: 0 / 0.8163 GB, free: 76.51 MB / 0.5606 GB " [Timeout remaining time 633] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/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_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.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: 30.231472391984425]