Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001136/0.001136, allocations: 79.69 kB / 20.02 MB, free: 4.504 MB / 18.57 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.001216/0.001216, allocations: 170.3 kB / 23.32 MB, free: 1.203 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8739/0.8739, allocations: 158.6 MB / 185.1 MB, free: 3.008 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1401/0.1401, allocations: 32.36 MB / 269.7 MB, free: 14.9 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 0 / 407 MB, free: 2.129 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.009e-05/2.194e-05, allocations: 5.938 kB / 407.1 MB, free: 2.125 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.007101/0.007123, allocations: 8.849 MB / 415.9 MB, free: 9.227 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.00611/0.01323, allocations: 3.524 MB / 419.4 MB, free: 5.691 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001508/0.01474, allocations: 59.75 kB / 419.5 MB, free: 5.633 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002508/0.01725, allocations: 2.008 MB / 421.5 MB, free: 3.617 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003308/0.02056, allocations: 1.847 MB / 423.3 MB, free: 1.762 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001006/0.02156, allocations: 0.6157 MB / 424 MB, free: 1.145 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.004006/0.02557, allocations: 4.108 MB / 428.1 MB, free: 13.02 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002647/0.02822, allocations: 2.408 MB / 430.5 MB, free: 10.56 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003317/0.03153, allocations: 1.968 MB / 432.4 MB, free: 8.586 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002613/0.03415, allocations: 1.987 MB / 434.4 MB, free: 6.594 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008211/0.03497, allocations: 276 kB / 434.7 MB, free: 6.324 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001885/0.03685, allocations: 1.119 MB / 435.8 MB, free: 5.203 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001744/0.0386, allocations: 1.819 MB / 437.6 MB, free: 3.379 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002004/0.0406, allocations: 1.157 MB / 438.8 MB, free: 2.219 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006649/0.04725, allocations: 6.674 MB / 445.5 MB, free: 11.52 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.746e-06/0.04726, allocations: 0 / 445.5 MB, free: 11.52 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.806e-06/0.04726, allocations: 0 / 445.5 MB, free: 11.52 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000261/0.04752, allocations: 0 / 445.5 MB, free: 11.52 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.009883/0.05741, allocations: 4.405 MB / 449.9 MB, free: 7.062 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.493e-05/0.05746, allocations: 12.03 kB / 449.9 MB, free: 7.051 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001151/0.05861, allocations: 0.6378 MB / 450.5 MB, free: 6.402 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03794/0.09656, allocations: 7.294 MB / 457.8 MB, free: 15.1 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005394/0.102, allocations: 2.556 MB / 460.4 MB, free: 12.5 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001309/0.1021, allocations: 201.2 kB / 460.6 MB, free: 12.3 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006915/0.1028, allocations: 260.2 kB / 460.8 MB, free: 12.04 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01146/0.1142, allocations: 8.741 MB / 469.6 MB, free: 2.637 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.562e-05/0.1143, allocations: 35.7 kB / 469.6 MB, free: 2.602 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004089/0.1147, allocations: 127.9 kB / 469.7 MB, free: 2.477 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001787/0.1165, allocations: 1.833 MB / 471.6 MB, free: 0.6406 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1708/0.2873, allocations: 7.289 MB / 478.8 MB, free: 92.47 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02467/0.312, allocations: 32.79 MB / 0.4996 GB, free: 68.99 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003115/0.3151, allocations: 2.033 MB / 0.5016 GB, free: 68.36 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009968/0.3161, allocations: 1.035 MB / 0.5026 GB, free: 67.95 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001918/0.3163, allocations: 97.55 kB / 0.5027 GB, free: 67.94 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.3163, allocations: 50.95 kB / 0.5028 GB, free: 67.89 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 3.757e-06/0.3163, allocations: 0 / 0.5028 GB, free: 67.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=133): time 0.0156/0.3319, allocations: 9.483 MB / 0.512 GB, free: 64.01 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.697e-05/0.332, allocations: 199.6 kB / 0.5122 GB, free: 63.79 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005236/0.3372, allocations: 4.422 MB / 0.5165 GB, free: 62.23 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002255/0.3375, allocations: 47.67 kB / 0.5166 GB, free: 62.19 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00139/0.3389, allocations: 3.058 MB / 0.5196 GB, free: 59.78 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005858/0.3394, allocations: 0.5567 MB / 0.5201 GB, free: 59.38 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001093/0.3405, allocations: 1.155 MB / 0.5213 GB, free: 58.79 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 3.405e-05/0.3406, allocations: 305.7 kB / 0.5215 GB, free: 58.49 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001787/0.3424, allocations: 1.697 MB / 0.5232 GB, free: 57.97 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00281/0.3452, allocations: 5.565 MB / 0.5286 GB, free: 51.75 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005063/0.3502, allocations: 7.86 MB / 0.5363 GB, free: 42.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.918e-05/0.3503, allocations: 40 kB / 0.5363 GB, free: 42.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.008014/0.3583, allocations: 7.104 MB / 0.5433 GB, free: 36.11 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.711e-05/0.3584, allocations: 64.06 kB / 0.5433 GB, free: 36.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001001/0.3585, allocations: 136 kB / 0.5435 GB, free: 35.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005752/0.3591, allocations: 416.6 kB / 0.5439 GB, free: 35.56 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001996/0.361, allocations: 1.323 MB / 0.5452 GB, free: 34.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002145/0.3632, allocations: 3.293 MB / 0.5484 GB, free: 31.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003128/0.3663, allocations: 347.5 kB / 0.5487 GB, free: 30.76 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003696/0.3667, allocations: 365.7 kB / 0.5491 GB, free: 30.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,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 (716): * Single equations (assignments): 712 * 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.002088/0.3688, allocations: 1.935 MB / 0.551 GB, free: 28.45 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006715/0.3695, allocations: 349.7 kB / 0.5513 GB, free: 28.11 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001719/0.3712, allocations: 1.699 MB / 0.5529 GB, free: 26.39 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.157e-05/0.3712, allocations: 16 kB / 0.553 GB, free: 26.38 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/0.3712, allocations: 4 kB / 0.553 GB, free: 26.37 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.3712, allocations: 7.969 kB / 0.553 GB, free: 26.36 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006327/0.3775, allocations: 5.271 MB / 0.5581 GB, free: 21.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.696e-06/0.3775, allocations: 4 kB / 0.5581 GB, free: 21.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000479/0.378, allocations: 187.7 kB / 0.5583 GB, free: 20.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003757/0.3784, allocations: 220.8 kB / 0.5585 GB, free: 20.64 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.877e-05/0.3785, allocations: 31.52 kB / 0.5585 GB, free: 20.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001589/0.3801, allocations: 2.634 MB / 0.5611 GB, free: 17.87 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3801, allocations: 3.938 kB / 0.5611 GB, free: 17.87 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003023/0.3831, allocations: 3.559 MB / 0.5646 GB, free: 14.27 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/0.3842, allocations: 0.4975 MB / 0.5651 GB, free: 13.77 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002657/0.3844, allocations: 27.94 kB / 0.5651 GB, free: 13.74 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007249/0.3852, allocations: 91.86 kB / 0.5652 GB, free: 13.65 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.3853, allocations: 66.88 kB / 0.5653 GB, free: 13.58 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.222e-05/0.3854, allocations: 43.98 kB / 0.5653 GB, free: 13.54 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002579/0.3879, allocations: 2.653 MB / 0.5679 GB, free: 10.91 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3879, allocations: 0 / 0.5679 GB, free: 10.91 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003692/0.3916, allocations: 0.9531 MB / 0.5688 GB, free: 9.953 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (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.003324/0.3949, allocations: 4.204 MB / 0.5729 GB, free: 5.707 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004736/0.3997, allocations: 3.972 MB / 0.5768 GB, free: 1.75 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.3997, allocations: 0 / 0.5768 GB, free: 1.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008272/0.4005, allocations: 0.9418 MB / 0.5777 GB, free: 0.8008 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001966/0.4025, allocations: 396 kB / 0.5781 GB, free: 436 kB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04972/0.4522, allocations: 40.88 MB / 0.618 GB, free: 1.691 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002645/0.4548, allocations: 2.409 MB / 0.6204 GB, free: 15.26 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.002811/0.4577, allocations: 1.822 MB / 0.6222 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001696/0.4593, allocations: 1.656 MB / 0.6238 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of SimCode: time 1.723e-06/0.4594, allocations: 4 kB / 0.6238 GB, free: 11.76 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2428/0.7022, allocations: 59.96 MB / 0.6823 GB, free: 156.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.03/10.73, allocations: 8.5 kB / 0.6823 GB, free: 156.7 MB / 0.5105 GB " [Timeout remaining time 649] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.csv. Warning: Get data of variable distance1.distance from file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.csv failed! Error: Could not read variable distance2.distance in file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.csv. Warning: Get data of variable distance2.distance from file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.881814659573138]