Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001148/0.001148, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001299/0.001299, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9267/0.9267, allocations: 177 MB / 204.1 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2552/0.2552, allocations: 34.24 MB / 294.8 MB, free: 0.6836 MB / 266.7 MB " [Timeout remaining time 180] 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.Distance2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 442.2 MB, free: 1.57 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.952e-05/2.092e-05, allocations: 5.094 kB / 442.2 MB, free: 1.566 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.1802/0.1802, allocations: 8.021 MB / 450.2 MB, free: 39.93 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003614/0.1838, allocations: 3.391 MB / 453.6 MB, free: 37.85 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004132/0.1842, allocations: 60.34 kB / 453.6 MB, free: 37.83 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001583/0.1858, allocations: 1.958 MB / 455.6 MB, free: 37.01 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001612/0.1874, allocations: 1.667 MB / 457.3 MB, free: 36.25 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005479/0.1879, allocations: 0.6198 MB / 457.9 MB, free: 36 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001969/0.1899, allocations: 4.043 MB / 461.9 MB, free: 34.46 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001246/0.1912, allocations: 2.248 MB / 464.2 MB, free: 33.46 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001117/0.1923, allocations: 1.78 MB / 465.9 MB, free: 32.7 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001121/0.1934, allocations: 1.791 MB / 467.7 MB, free: 32.23 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002072/0.1936, allocations: 244.2 kB / 468 MB, free: 32.23 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008982/0.1945, allocations: 1.069 MB / 469 MB, free: 32.03 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007464/0.1953, allocations: 1.614 MB / 470.7 MB, free: 31.35 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006915/0.1959, allocations: 1.031 MB / 471.7 MB, free: 30.84 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003304/0.1992, allocations: 5.938 MB / 477.6 MB, free: 28.83 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.1993, allocations: 0 / 477.6 MB, free: 28.83 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1993, allocations: 0 / 477.6 MB, free: 28.83 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.396e-05/0.1993, allocations: 0 / 477.6 MB, free: 28.83 MB / 410.7 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.004906/0.2042, allocations: 4.016 MB / 481.6 MB, free: 26.56 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.2042, allocations: 10.47 kB / 481.6 MB, free: 26.56 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005315/0.2048, allocations: 0.5756 MB / 482.2 MB, free: 26.27 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0382/0.243, allocations: 7.174 MB / 489.4 MB, free: 25.69 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004314/0.2473, allocations: 2.234 MB / 491.6 MB, free: 24.58 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.484e-05/0.2474, allocations: 185.1 kB / 491.8 MB, free: 24.49 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003216/0.2477, allocations: 238.2 kB / 492 MB, free: 24.4 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007499/0.2552, allocations: 7.783 MB / 499.8 MB, free: 19.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.649e-05/0.2553, allocations: 39.95 kB / 499.9 MB, free: 19.94 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002079/0.2555, allocations: 117.2 kB / 500 MB, free: 19.86 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001421/0.2569, allocations: 1.584 MB / 0.4898 GB, free: 19.24 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005706/0.2626, allocations: 6.451 MB / 0.4961 GB, free: 14.19 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01875/0.2813, allocations: 30.34 MB / 0.5257 GB, free: 14.91 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002884/0.2842, allocations: 1.953 MB / 0.5276 GB, free: 12.92 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001179/0.2854, allocations: 0.9709 MB / 0.5286 GB, free: 11.94 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00017/0.2856, allocations: 95.8 kB / 0.5287 GB, free: 11.84 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/0.2856, allocations: 50.42 kB / 0.5287 GB, free: 11.79 MB / 442.7 MB Notification: Performance of pre-optimization done (n=104): time 3.296e-06/0.2856, allocations: 4 kB / 0.5287 GB, free: 11.78 MB / 442.7 MB Notification: Performance of matching and sorting (n=118): time 0.01251/0.2981, allocations: 8.764 MB / 0.5373 GB, free: 2.965 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.379e-05/0.2982, allocations: 196.4 kB / 0.5375 GB, free: 2.73 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003281/0.3015, allocations: 4.162 MB / 0.5415 GB, free: 14.57 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.571e-05/0.3015, allocations: 41.7 kB / 0.5416 GB, free: 14.53 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001297/0.3028, allocations: 2.791 MB / 0.5443 GB, free: 11.71 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000281/0.3031, allocations: 0.5042 MB / 0.5448 GB, free: 11.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008661/0.304, allocations: 1.072 MB / 0.5459 GB, free: 10.12 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.599e-05/0.3041, allocations: 301.1 kB / 0.5461 GB, free: 9.82 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001442/0.3055, allocations: 1.584 MB / 0.5477 GB, free: 8.23 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003099/0.3086, allocations: 5.195 MB / 0.5528 GB, free: 1.223 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005144/0.3137, allocations: 7.315 MB / 0.5599 GB, free: 8.133 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.355e-05/0.3138, allocations: 41.62 kB / 0.5599 GB, free: 8.094 MB / 474.7 MB Notification: Performance of matching and sorting (n=698) (initialization): time 0.005983/0.3198, allocations: 6.646 MB / 0.5664 GB, free: 1.438 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.95e-05/0.3198, allocations: 63.98 kB / 0.5665 GB, free: 1.375 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.706e-05/0.3199, allocations: 124.9 kB / 0.5666 GB, free: 1.254 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007708/0.3206, allocations: 409.7 kB / 0.567 GB, free: 0.8516 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001713/0.3224, allocations: 1.216 MB / 0.5682 GB, free: 15.63 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002669/0.325, allocations: 3.259 MB / 0.5714 GB, free: 12.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/0.3271, allocations: 315.6 kB / 0.5717 GB, free: 11.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002484/0.3274, allocations: 340 kB / 0.572 GB, free: 11.62 MB / 490.7 MB 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.001952/0.3293, allocations: 1.777 MB / 0.5737 GB, free: 9.836 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002725/0.3296, allocations: 325.7 kB / 0.574 GB, free: 9.516 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001518/0.3311, allocations: 1.473 MB / 0.5755 GB, free: 8.031 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/0.3311, allocations: 12 kB / 0.5755 GB, free: 8.02 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/0.3312, allocations: 4 kB / 0.5755 GB, free: 8.016 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.829e-06/0.3312, allocations: 3.984 kB / 0.5755 GB, free: 8.012 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004955/0.3361, allocations: 4.682 MB / 0.5801 GB, free: 3.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.491e-06/0.3361, allocations: 0 / 0.5801 GB, free: 3.27 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003915/0.3365, allocations: 159.8 kB / 0.5802 GB, free: 3.113 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003887/0.3369, allocations: 224.6 kB / 0.5804 GB, free: 2.891 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.729e-05/0.3369, allocations: 20 kB / 0.5805 GB, free: 2.871 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002322/0.3393, allocations: 2.639 MB / 0.583 GB, free: 124 kB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3393, allocations: 4.031 kB / 0.583 GB, free: 120 kB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002856/0.3421, allocations: 3.289 MB / 0.5863 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003901/0.3425, allocations: 329.6 kB / 0.5866 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002664/0.3428, allocations: 16 kB / 0.5866 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009868/0.3438, allocations: 88 kB / 0.5867 GB, free: 12.38 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001712/0.3439, allocations: 60.39 kB / 0.5867 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.244e-05/0.344, allocations: 31.98 kB / 0.5868 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003475/0.3475, allocations: 2.483 MB / 0.5892 GB, free: 9.82 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.11e-07/0.3475, allocations: 0 / 0.5892 GB, free: 9.82 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004713/0.3522, allocations: 0.8671 MB / 0.59 GB, free: 8.953 MB / 0.4948 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.00323/0.3554, allocations: 3.927 MB / 0.5939 GB, free: 4.992 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00426/0.3597, allocations: 3.692 MB / 0.5975 GB, free: 1.309 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3597, allocations: 0 / 0.5975 GB, free: 1.309 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008136/0.3605, allocations: 0.8804 MB / 0.5983 GB, free: 428 kB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001308/0.3618, allocations: 386.7 kB / 0.5987 GB, free: 52 kB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03329/0.3951, allocations: 37.63 MB / 0.6354 GB, free: 5.039 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001778/0.3969, allocations: 2.173 MB / 0.6376 GB, free: 2.836 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002219/0.3991, allocations: 1.707 MB / 0.6392 GB, free: 1.125 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1783/0.5774, allocations: 1.459 MB / 0.6407 GB, free: 166.4 MB / 0.5417 GB Notification: Performance of SimCode: time 1.483e-06/0.5774, allocations: 2.875 kB / 0.6407 GB, free: 166.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07499/0.6524, allocations: 55.86 MB / 0.6952 GB, free: 151.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.06/10.72, allocations: 11.81 kB / 0.6952 GB, free: 151.9 MB / 0.5417 GB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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 9.996e-05 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable distance1.distance in file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.csv. Warning: Get data of variable distance1.distance from file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.csv failed! Error: Could not read variable distance2.distance in file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.csv. Warning: Get data of variable distance2.distance from file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.888213081285357]