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.0014/0.0014, allocations: 83.59 kB / 20.49 MB, free: 1.391 MB / 14.72 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.001524/0.001524, allocations: 162.4 kB / 23.74 MB, free: 4.586 MB / 14.72 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 1.417/1.417, allocations: 177.1 MB / 204 MB, free: 9.285 MB / 190.1 MB " [Timeout remaining time 178] 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.2146/0.2146, allocations: 34.26 MB / 294.7 MB, free: 14.66 MB / 286.1 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 0.002672/0.002672, allocations: 79.88 kB / 441.9 MB, free: 6.043 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2933, allocations: 66.06 MB / 0.496 GB, free: 1.809 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01143/0.3047, allocations: 8.024 MB / 0.5039 GB, free: 9.746 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008247/0.313, allocations: 3.38 MB / 0.5072 GB, free: 6.355 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001627/0.3146, allocations: 59.69 kB / 0.5072 GB, free: 6.297 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004616/0.3192, allocations: 1.955 MB / 0.5091 GB, free: 4.336 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00461/0.3238, allocations: 1.645 MB / 0.5107 GB, free: 2.688 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001617/0.3254, allocations: 0.6122 MB / 0.5113 GB, free: 2.074 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005632/0.3311, allocations: 3.669 MB / 0.5149 GB, free: 14.4 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003113/0.3342, allocations: 1.983 MB / 0.5169 GB, free: 12.36 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003645/0.3378, allocations: 1.64 MB / 0.5185 GB, free: 10.71 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003052/0.3409, allocations: 1.69 MB / 0.5201 GB, free: 9.02 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007923/0.3417, allocations: 244 kB / 0.5204 GB, free: 8.781 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00237/0.344, allocations: 1.014 MB / 0.5213 GB, free: 7.766 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00213/0.3462, allocations: 1.55 MB / 0.5229 GB, free: 6.211 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00254/0.3487, allocations: 1.32 MB / 0.5241 GB, free: 4.883 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007932/0.3566, allocations: 5.895 MB / 0.5299 GB, free: 14.96 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.3567, allocations: 0 / 0.5299 GB, free: 14.96 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3567, allocations: 0 / 0.5299 GB, free: 14.96 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001695/0.3568, allocations: 4 kB / 0.5299 GB, free: 14.96 MB / 446.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.01144/0.3683, allocations: 3.998 MB / 0.5338 GB, free: 10.91 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.3683, allocations: 8.031 kB / 0.5338 GB, free: 10.9 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001598/0.3699, allocations: 0.5792 MB / 0.5344 GB, free: 10.31 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08178/0.4517, allocations: 7.181 MB / 0.5414 GB, free: 3.113 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006503/0.4582, allocations: 2.411 MB / 0.5437 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001903/0.4584, allocations: 176.8 kB / 0.5439 GB, free: 500 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009992/0.4594, allocations: 239.8 kB / 0.5441 GB, free: 260 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01486/0.4742, allocations: 7.782 MB / 0.5517 GB, free: 7.809 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001434/0.4744, allocations: 39.69 kB / 0.5518 GB, free: 7.77 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007166/0.4751, allocations: 119.9 kB / 0.5519 GB, free: 7.652 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002943/0.478, allocations: 1.578 MB / 0.5534 GB, free: 6.07 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01349/0.4915, allocations: 6.449 MB / 0.5597 GB, free: 15.61 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03987/0.5314, allocations: 30.23 MB / 0.5893 GB, free: 412 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004898/0.5363, allocations: 1.96 MB / 0.5912 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00151/0.5378, allocations: 0.9717 MB / 0.5921 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002953/0.5381, allocations: 87.94 kB / 0.5922 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.933e-05/0.5381, allocations: 46.5 kB / 0.5923 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=104): time 3.777e-06/0.5382, allocations: 0 / 0.5923 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of matching and sorting (n=118): time 0.02308/0.5612, allocations: 8.679 MB / 0.6007 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.5614, allocations: 192.4 kB / 0.6009 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006179/0.5675, allocations: 3.974 MB / 0.6048 GB, free: 356 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002169/0.5677, allocations: 41.7 kB / 0.6048 GB, free: 308 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002466/0.5702, allocations: 2.834 MB / 0.6076 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006662/0.5709, allocations: 0.5041 MB / 0.6081 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001561/0.5724, allocations: 1.099 MB / 0.6092 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001282/0.5726, allocations: 305.1 kB / 0.6095 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002654/0.5752, allocations: 1.58 MB / 0.611 GB, free: 9.934 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006432/0.5817, allocations: 5.199 MB / 0.6161 GB, free: 2.918 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009377/0.591, allocations: 7.319 MB / 0.6232 GB, free: 9.824 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000135/0.5912, allocations: 36 kB / 0.6233 GB, free: 9.789 MB / 0.5294 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01387/0.605, allocations: 6.643 MB / 0.6297 GB, free: 3.137 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.614e-05/0.6051, allocations: 62.66 kB / 0.6298 GB, free: 3.078 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000156/0.6053, allocations: 124 kB / 0.6299 GB, free: 2.957 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001015/0.6063, allocations: 405 kB / 0.6303 GB, free: 2.559 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003898/0.6102, allocations: 1.22 MB / 0.6315 GB, free: 1.336 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004364/0.6146, allocations: 3.21 MB / 0.6346 GB, free: 14.01 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004372/0.6189, allocations: 287.6 kB / 0.6349 GB, free: 13.73 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000951/0.6199, allocations: 340 kB / 0.6352 GB, free: 13.4 MB / 0.545 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.003363/0.6233, allocations: 1.779 MB / 0.637 GB, free: 11.61 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007283/0.624, allocations: 317.8 kB / 0.6373 GB, free: 11.29 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003096/0.6271, allocations: 1.465 MB / 0.6387 GB, free: 9.812 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.653e-05/0.6271, allocations: 15.98 kB / 0.6387 GB, free: 9.797 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/0.6271, allocations: 7.938 kB / 0.6387 GB, free: 9.789 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.426e-05/0.6271, allocations: 7.984 kB / 0.6387 GB, free: 9.781 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01026/0.6374, allocations: 4.625 MB / 0.6433 GB, free: 5.094 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.578e-05/0.6374, allocations: 4 kB / 0.6433 GB, free: 5.09 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008571/0.6383, allocations: 159.7 kB / 0.6434 GB, free: 4.934 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007114/0.639, allocations: 224.6 kB / 0.6436 GB, free: 4.711 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001192/0.6391, allocations: 20.03 kB / 0.6436 GB, free: 4.691 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00326/0.6424, allocations: 2.581 MB / 0.6462 GB, free: 1.996 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.441e-06/0.6424, allocations: 4.031 kB / 0.6462 GB, free: 1.992 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.266/0.9084, allocations: 3.292 MB / 0.6494 GB, free: 136 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001023/0.9094, allocations: 294.4 kB / 0.6497 GB, free: 136 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005178/0.9099, allocations: 21.62 kB / 0.6497 GB, free: 136 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/0.911, allocations: 48.95 kB / 0.6497 GB, free: 136 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002344/0.9113, allocations: 67.48 kB / 0.6498 GB, free: 136 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.285e-05/0.9114, allocations: 32.38 kB / 0.6498 GB, free: 136 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004099/0.9155, allocations: 2.346 MB / 0.6521 GB, free: 135.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.81e-07/0.9155, allocations: 2.781 kB / 0.6521 GB, free: 135.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004498/0.92, allocations: 0.7621 MB / 0.6529 GB, free: 135.3 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.005097/0.9251, allocations: 3.914 MB / 0.6567 GB, free: 133.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00522/0.9303, allocations: 3.68 MB / 0.6603 GB, free: 132.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.9303, allocations: 3.969 kB / 0.6603 GB, free: 132.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001274/0.9316, allocations: 0.8864 MB / 0.6611 GB, free: 131.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002469/0.934, allocations: 373.5 kB / 0.6615 GB, free: 131.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04646/0.9805, allocations: 37.26 MB / 0.6979 GB, free: 94.65 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00246/0.9829, allocations: 2.162 MB / 0.7 GB, free: 92.46 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003137/0.9861, allocations: 1.704 MB / 0.7017 GB, free: 90.75 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001933/0.988, allocations: 1.457 MB / 0.7031 GB, free: 89.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.673e-06/0.988, allocations: 0 / 0.7031 GB, free: 89.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09765/1.086, allocations: 54.46 MB / 0.7563 GB, free: 35.42 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.76/17.84, allocations: 7.922 kB / 0.7563 GB, free: 35.41 MB / 0.545 GB " [Timeout remaining time 642] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/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: 20.87164272274822]