Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001964/0.001964, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002119/0.002119, allocations: 215.9 kB / 23.73 MB, free: 4.16 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.56/1.56, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2407/0.2407, allocations: 46.96 MB / 360.9 MB, free: 4.027 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00231/0.00231, allocations: 67.89 kB / 0.4961 GB, free: 7.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.3362, allocations: 66.04 MB / 0.5606 GB, free: 4.234 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01133/0.3475, allocations: 7.912 MB / 0.5683 GB, free: 12.28 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007768/0.3553, allocations: 3.361 MB / 0.5716 GB, free: 8.91 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001432/0.3567, allocations: 59.75 kB / 0.5717 GB, free: 8.852 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003907/0.3607, allocations: 1.639 MB / 0.5733 GB, free: 7.207 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004698/0.3654, allocations: 1.58 MB / 0.5748 GB, free: 5.625 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001609/0.367, allocations: 0.5653 MB / 0.5754 GB, free: 5.059 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005682/0.3726, allocations: 3.568 MB / 0.5788 GB, free: 1.48 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003607/0.3763, allocations: 1.821 MB / 0.5806 GB, free: 15.6 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002745/0.379, allocations: 1.117 MB / 0.5817 GB, free: 14.48 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00343/0.3824, allocations: 1.588 MB / 0.5833 GB, free: 12.89 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009707/0.3834, allocations: 223.9 kB / 0.5835 GB, free: 12.67 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002946/0.3863, allocations: 1.006 MB / 0.5845 GB, free: 11.66 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002081/0.3884, allocations: 1.441 MB / 0.5859 GB, free: 10.21 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002756/0.3912, allocations: 1.242 MB / 0.5871 GB, free: 8.965 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007286/0.3985, allocations: 5.591 MB / 0.5925 GB, free: 3.352 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.005e-05/0.3985, allocations: 3.984 kB / 0.5925 GB, free: 3.348 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3985, allocations: 0 / 0.5925 GB, free: 3.348 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001398/0.3986, allocations: 0 / 0.5925 GB, free: 3.348 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.009174/0.4078, allocations: 3.814 MB / 0.5963 GB, free: 15.48 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.4078, allocations: 8.031 kB / 0.5963 GB, free: 15.47 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007991/0.4086, allocations: 0.5462 MB / 0.5968 GB, free: 14.91 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08826/0.4969, allocations: 6.943 MB / 0.6036 GB, free: 7.957 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007047/0.5039, allocations: 2.341 MB / 0.6059 GB, free: 5.578 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002046/0.5041, allocations: 160.5 kB / 0.606 GB, free: 5.418 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008984/0.505, allocations: 227.8 kB / 0.6062 GB, free: 5.195 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01433/0.5194, allocations: 7.394 MB / 0.6135 GB, free: 13.16 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001416/0.5195, allocations: 35.7 kB / 0.6135 GB, free: 13.12 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006386/0.5202, allocations: 107.9 kB / 0.6136 GB, free: 13.02 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003/0.5232, allocations: 1.539 MB / 0.6151 GB, free: 11.48 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01378/0.5369, allocations: 6.174 MB / 0.6211 GB, free: 5.293 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04301/0.5799, allocations: 28.74 MB / 0.6492 GB, free: 7.633 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004763/0.5847, allocations: 1.634 MB / 0.6508 GB, free: 5.961 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001705/0.5864, allocations: 0.9846 MB / 0.6518 GB, free: 4.965 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003394/0.5868, allocations: 88.31 kB / 0.6518 GB, free: 4.879 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.253e-05/0.5868, allocations: 46.94 kB / 0.6519 GB, free: 4.824 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 4.479e-06/0.5868, allocations: 4 kB / 0.6519 GB, free: 4.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03723/0.624, allocations: 10.95 MB / 0.6626 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001466/0.6242, allocations: 192.6 kB / 0.6628 GB, free: 9.574 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007445/0.6316, allocations: 3.815 MB / 0.6665 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002672/0.6319, allocations: 45.7 kB / 0.6665 GB, free: 5.707 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002844/0.6347, allocations: 2.675 MB / 0.6691 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008458/0.6356, allocations: 0.5467 MB / 0.6697 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002332/0.6379, allocations: 1.052 MB / 0.6707 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.6381, allocations: 301.1 kB / 0.671 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002953/0.641, allocations: 1.63 MB / 0.6726 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006962/0.648, allocations: 5.02 MB / 0.6775 GB, free: 8.734 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01067/0.6587, allocations: 7.169 MB / 0.6845 GB, free: 15.91 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001603/0.6588, allocations: 35.94 kB / 0.6845 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.0141/0.6729, allocations: 6.562 MB / 0.6909 GB, free: 9.301 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001767/0.6731, allocations: 58.62 kB / 0.691 GB, free: 9.246 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002639/0.6734, allocations: 120 kB / 0.6911 GB, free: 9.129 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001167/0.6745, allocations: 405 kB / 0.6915 GB, free: 8.73 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004042/0.6786, allocations: 1.189 MB / 0.6926 GB, free: 7.539 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004579/0.6831, allocations: 3.19 MB / 0.6958 GB, free: 4.238 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004008/0.6872, allocations: 283.5 kB / 0.696 GB, free: 3.961 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009053/0.6881, allocations: 332 kB / 0.6964 GB, free: 3.637 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.003688/0.6917, allocations: 1.693 MB / 0.698 GB, free: 1.93 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008731/0.6926, allocations: 317.8 kB / 0.6983 GB, free: 1.617 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003762/0.6964, allocations: 1.714 MB / 0.7 GB, free: 15.89 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.751e-05/0.6964, allocations: 19.98 kB / 0.7 GB, free: 15.87 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.55e-05/0.6964, allocations: 11.94 kB / 0.7 GB, free: 15.86 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/0.6964, allocations: 3.984 kB / 0.7 GB, free: 15.85 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0108/0.7072, allocations: 4.919 MB / 0.7048 GB, free: 10.86 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/0.7073, allocations: 0 / 0.7048 GB, free: 10.86 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.7083, allocations: 195.7 kB / 0.705 GB, free: 10.67 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007459/0.709, allocations: 228.6 kB / 0.7052 GB, free: 10.45 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001265/0.7092, allocations: 23.98 kB / 0.7052 GB, free: 10.42 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00337/0.7125, allocations: 2.572 MB / 0.7078 GB, free: 7.734 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.7125, allocations: 0 / 0.7078 GB, free: 7.734 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00604/0.7186, allocations: 3.732 MB / 0.7114 GB, free: 3.973 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009515/0.7195, allocations: 293.8 kB / 0.7117 GB, free: 3.684 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005935/0.7201, allocations: 20 kB / 0.7117 GB, free: 3.664 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001439/0.7216, allocations: 67.84 kB / 0.7118 GB, free: 3.598 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000192/0.7218, allocations: 76.45 kB / 0.7118 GB, free: 3.523 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.7219, allocations: 39.98 kB / 0.7119 GB, free: 3.484 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005076/0.7269, allocations: 2.261 MB / 0.7141 GB, free: 1.234 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.7269, allocations: 0 / 0.7141 GB, free: 1.234 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004717/0.7317, allocations: 0.7655 MB / 0.7148 GB, free: 480 kB / 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.007059/0.7387, allocations: 4.355 MB / 0.7191 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007824/0.7465, allocations: 3.785 MB / 0.7228 GB, free: 8.301 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.7465, allocations: 4 kB / 0.7228 GB, free: 8.297 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001795/0.7483, allocations: 0.99 MB / 0.7238 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002988/0.7513, allocations: 373.5 kB / 0.7241 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.295/1.046, allocations: 36.6 MB / 0.7599 GB, free: 134.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002845/1.049, allocations: 2.072 MB / 0.7619 GB, free: 132.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003565/1.053, allocations: 1.701 MB / 0.7635 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001816/1.055, allocations: 1.405 MB / 0.7649 GB, free: 129.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.262e-06/1.055, allocations: 0 / 0.7649 GB, free: 129.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09381/1.148, allocations: 53.63 MB / 0.8173 GB, free: 76.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.44/16.59, allocations: 0 / 0.8173 GB, free: 76.8 MB / 0.5606 GB " [Timeout remaining time 643] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Distance1.distance in file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.csv. Warning: Get data of variable Distance1.distance from file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.807757277972996]