Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.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.001844/0.001844, allocations: 114.1 kB / 20.43 MB, free: 1.301 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.002285/0.002285, allocations: 206.7 kB / 23.74 MB, free: 4.539 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.482/1.482, allocations: 230.5 MB / 257.4 MB, free: 8.023 MB / 206.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.2357/0.2357, allocations: 46.92 MB / 360.8 MB, free: 4.18 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.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002426/0.002426, allocations: 79.88 kB / 0.4962 GB, free: 7.754 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3774/0.3798, allocations: 66.08 MB / 0.5607 GB, free: 4.305 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01178/0.3916, allocations: 8.996 MB / 0.5695 GB, free: 11.27 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007957/0.3996, allocations: 3.59 MB / 0.573 GB, free: 7.668 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001626/0.4012, allocations: 55.75 kB / 0.5731 GB, free: 7.613 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003908/0.4051, allocations: 1.701 MB / 0.5747 GB, free: 5.906 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004932/0.41, allocations: 1.576 MB / 0.5763 GB, free: 4.324 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001711/0.4117, allocations: 0.5614 MB / 0.5768 GB, free: 3.762 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006776/0.4185, allocations: 3.579 MB / 0.5803 GB, free: 180 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003402/0.4219, allocations: 1.821 MB / 0.5821 GB, free: 14.3 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002366/0.4243, allocations: 1.113 MB / 0.5832 GB, free: 13.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003541/0.4278, allocations: 1.666 MB / 0.5848 GB, free: 11.51 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009068/0.4287, allocations: 220 kB / 0.585 GB, free: 11.29 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002783/0.4315, allocations: 1.143 MB / 0.5861 GB, free: 10.15 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002309/0.4338, allocations: 1.449 MB / 0.5876 GB, free: 8.695 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002776/0.4366, allocations: 1.689 MB / 0.5892 GB, free: 6.996 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009779/0.4464, allocations: 5.576 MB / 0.5946 GB, free: 1.398 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.228e-06/0.4464, allocations: 0 / 0.5946 GB, free: 1.398 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4464, allocations: 0 / 0.5946 GB, free: 1.398 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000213/0.4466, allocations: 0 / 0.5946 GB, free: 1.398 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.01605/0.4626, allocations: 3.806 MB / 0.5984 GB, free: 13.54 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.164e-05/0.4627, allocations: 12.03 kB / 0.5984 GB, free: 13.52 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002173/0.4649, allocations: 0.5462 MB / 0.5989 GB, free: 12.96 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0816/0.5465, allocations: 6.939 MB / 0.6057 GB, free: 6.016 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006461/0.5529, allocations: 2.329 MB / 0.608 GB, free: 3.648 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001546/0.5531, allocations: 156.5 kB / 0.6081 GB, free: 3.492 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006742/0.5538, allocations: 231.8 kB / 0.6083 GB, free: 3.266 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01408/0.5679, allocations: 7.336 MB / 0.6155 GB, free: 11.3 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001157/0.568, allocations: 47.56 kB / 0.6155 GB, free: 11.25 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000354/0.5683, allocations: 107.9 kB / 0.6156 GB, free: 11.15 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002694/0.571, allocations: 1.542 MB / 0.6171 GB, free: 9.602 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01261/0.5836, allocations: 6.178 MB / 0.6232 GB, free: 3.41 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03866/0.6223, allocations: 29.78 MB / 0.6523 GB, free: 4.707 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004581/0.6269, allocations: 1.641 MB / 0.6539 GB, free: 3.027 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001559/0.6284, allocations: 0.9944 MB / 0.6548 GB, free: 2.023 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003228/0.6288, allocations: 88.3 kB / 0.6549 GB, free: 1.938 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.751e-05/0.6288, allocations: 50.94 kB / 0.655 GB, free: 1.879 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.797e-06/0.6288, allocations: 0 / 0.655 GB, free: 1.879 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03583/0.6646, allocations: 10.91 MB / 0.6656 GB, free: 6.898 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001973/0.6648, allocations: 192.5 kB / 0.6658 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006841/0.6717, allocations: 3.618 MB / 0.6693 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002972/0.672, allocations: 45.7 kB / 0.6694 GB, free: 3 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00233/0.6743, allocations: 2.667 MB / 0.672 GB, free: 312 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007623/0.6751, allocations: 0.5546 MB / 0.6725 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001657/0.6767, allocations: 1.052 MB / 0.6736 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001371/0.6769, allocations: 301.1 kB / 0.6738 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002754/0.6796, allocations: 1.626 MB / 0.6754 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006024/0.6856, allocations: 4.969 MB / 0.6803 GB, free: 6.094 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0102/0.6958, allocations: 7.175 MB / 0.6873 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001268/0.696, allocations: 32 kB / 0.6873 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01391/0.7099, allocations: 6.57 MB / 0.6937 GB, free: 6.648 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001023/0.71, allocations: 56 kB / 0.6938 GB, free: 6.594 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001728/0.7102, allocations: 124.2 kB / 0.6939 GB, free: 6.473 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/0.7113, allocations: 396.5 kB / 0.6943 GB, free: 6.082 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004272/0.7155, allocations: 1.193 MB / 0.6955 GB, free: 4.887 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004353/0.7199, allocations: 3.206 MB / 0.6986 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004096/0.724, allocations: 283.7 kB / 0.6989 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009797/0.725, allocations: 332 kB / 0.6992 GB, free: 0.9648 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.003473/0.7284, allocations: 1.693 MB / 0.7008 GB, free: 15.26 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007434/0.7292, allocations: 313.9 kB / 0.7011 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003629/0.7328, allocations: 1.717 MB / 0.7028 GB, free: 13.22 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.552e-05/0.7328, allocations: 16.38 kB / 0.7028 GB, free: 13.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.7329, allocations: 3.938 kB / 0.7028 GB, free: 13.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.797e-05/0.7329, allocations: 11.97 kB / 0.7028 GB, free: 13.19 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0115/0.7444, allocations: 5.215 MB / 0.7079 GB, free: 7.891 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-05/0.7444, allocations: 3.938 kB / 0.7079 GB, free: 7.887 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/0.7455, allocations: 195.7 kB / 0.7081 GB, free: 7.695 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007818/0.7463, allocations: 228.6 kB / 0.7083 GB, free: 7.469 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000164/0.7465, allocations: 27.98 kB / 0.7084 GB, free: 7.441 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003399/0.7499, allocations: 2.581 MB / 0.7109 GB, free: 4.742 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/0.7499, allocations: 4 kB / 0.7109 GB, free: 4.738 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006304/0.7562, allocations: 3.736 MB / 0.7145 GB, free: 0.9727 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001161/0.7574, allocations: 293.8 kB / 0.7148 GB, free: 0.6836 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005614/0.7579, allocations: 20 kB / 0.7148 GB, free: 0.6641 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001314/0.7592, allocations: 71.84 kB / 0.7149 GB, free: 0.5938 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002261/0.7595, allocations: 72.8 kB / 0.715 GB, free: 0.5234 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001073/0.7596, allocations: 40.05 kB / 0.715 GB, free: 496 kB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00453/0.7641, allocations: 2.261 MB / 0.7172 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.71e-07/0.7641, allocations: 3.938 kB / 0.7172 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004879/0.769, allocations: 0.7538 MB / 0.718 GB, free: 13.48 MB / 0.5606 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.006892/0.7759, allocations: 4.366 MB / 0.7222 GB, free: 9.066 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007456/0.7833, allocations: 3.786 MB / 0.7259 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.7833, allocations: 0 / 0.7259 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001796/0.7851, allocations: 0.9938 MB / 0.7269 GB, free: 4.289 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002829/0.788, allocations: 366 kB / 0.7272 GB, free: 3.934 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.31/1.098, allocations: 36.6 MB / 0.763 GB, free: 130.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00249/1.1, allocations: 2.637 MB / 0.7656 GB, free: 127.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003279/1.104, allocations: 1.698 MB / 0.7672 GB, free: 126.2 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001782/1.105, allocations: 1.409 MB / 0.7686 GB, free: 124.8 MB / 0.5606 GB Notification: Performance of SimCode: time 9.42e-07/1.105, allocations: 0 / 0.7686 GB, free: 124.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09717/1.203, allocations: 57.92 MB / 0.8252 GB, free: 67.21 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.69/25.89, allocations: 3.938 kB / 0.8252 GB, free: 67.2 MB / 0.5606 GB " [Timeout remaining time 634] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.csv. Warning: Get data of variable Distance1.distance from file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 29.104757355999027]