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.001866/0.001866, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002223/0.002223, allocations: 206.6 kB / 20.75 MB, free: 2.312 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.577/1.577, allocations: 230.4 MB / 254 MB, free: 15.02 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.2679/0.2679, allocations: 46.92 MB / 357 MB, free: 10.2 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.002597/0.002597, allocations: 83.88 kB / 0.491 GB, free: 7.727 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1189, allocations: 66.04 MB / 0.5555 GB, free: 5.555 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01155/0.1305, allocations: 9.083 MB / 0.5643 GB, free: 12.42 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007859/0.1383, allocations: 3.602 MB / 0.5678 GB, free: 8.805 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001276/0.1396, allocations: 55.75 kB / 0.5679 GB, free: 8.75 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004148/0.1438, allocations: 1.935 MB / 0.5698 GB, free: 6.809 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004198/0.148, allocations: 1.603 MB / 0.5714 GB, free: 5.199 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001447/0.1494, allocations: 0.5692 MB / 0.5719 GB, free: 4.629 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005636/0.1551, allocations: 3.66 MB / 0.5755 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002843/0.1579, allocations: 2.074 MB / 0.5775 GB, free: 14.84 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00183/0.1597, allocations: 1.191 MB / 0.5787 GB, free: 13.64 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002521/0.1622, allocations: 1.772 MB / 0.5804 GB, free: 11.86 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005445/0.1628, allocations: 240 kB / 0.5806 GB, free: 11.63 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002122/0.1649, allocations: 1.151 MB / 0.5818 GB, free: 10.48 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001715/0.1666, allocations: 1.55 MB / 0.5833 GB, free: 8.922 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002158/0.1688, allocations: 1.786 MB / 0.585 GB, free: 7.125 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00763/0.1764, allocations: 5.872 MB / 0.5907 GB, free: 1.23 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.1764, allocations: 0 / 0.5907 GB, free: 1.23 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.1764, allocations: 0 / 0.5907 GB, free: 1.23 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001863/0.1766, allocations: 3.938 kB / 0.5907 GB, free: 1.227 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.2281/0.4047, allocations: 4.06 MB / 0.5947 GB, free: 32.88 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.4048, allocations: 9.594 kB / 0.5947 GB, free: 32.88 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001152/0.4059, allocations: 0.5736 MB / 0.5953 GB, free: 32.82 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09494/0.5009, allocations: 6.967 MB / 0.6021 GB, free: 32.52 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006372/0.5072, allocations: 2.468 MB / 0.6045 GB, free: 31.69 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001977/0.5074, allocations: 180.6 kB / 0.6047 GB, free: 31.63 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001075/0.5085, allocations: 234.8 kB / 0.6049 GB, free: 31.58 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01245/0.521, allocations: 7.729 MB / 0.6124 GB, free: 27.08 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000115/0.5211, allocations: 35.48 kB / 0.6125 GB, free: 27.06 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004397/0.5215, allocations: 119.2 kB / 0.6126 GB, free: 26.98 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0025/0.524, allocations: 1.582 MB / 0.6141 GB, free: 26.36 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01031/0.5343, allocations: 6.466 MB / 0.6204 GB, free: 22.07 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03074/0.5651, allocations: 31.36 MB / 0.6511 GB, free: 5.797 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005161/0.5702, allocations: 2.349 MB / 0.6534 GB, free: 3.301 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00153/0.5718, allocations: 0.9796 MB / 0.6543 GB, free: 2.312 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004113/0.5722, allocations: 323.1 kB / 0.6546 GB, free: 1.941 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.531e-05/0.5722, allocations: 50.44 kB / 0.6547 GB, free: 1.883 MB / 462.1 MB Notification: Performance of pre-optimization done (n=104): time 3.526e-06/0.5722, allocations: 4 kB / 0.6547 GB, free: 1.879 MB / 462.1 MB Notification: Performance of matching and sorting (n=118): time 0.02426/0.5965, allocations: 8.548 MB / 0.663 GB, free: 9.246 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001446/0.5966, allocations: 188.5 kB / 0.6632 GB, free: 9.02 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006459/0.6031, allocations: 3.773 MB / 0.6669 GB, free: 5.254 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002428/0.6033, allocations: 41.7 kB / 0.6669 GB, free: 5.207 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00258/0.6059, allocations: 2.834 MB / 0.6697 GB, free: 2.344 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007232/0.6066, allocations: 0.4964 MB / 0.6702 GB, free: 1.844 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001796/0.6084, allocations: 1.099 MB / 0.6713 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.6086, allocations: 301.1 kB / 0.6715 GB, free: 448 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003988/0.6126, allocations: 1.584 MB / 0.6731 GB, free: 14.85 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009301/0.6219, allocations: 5.145 MB / 0.6781 GB, free: 7.898 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01449/0.6363, allocations: 7.32 MB / 0.6853 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001376/0.6365, allocations: 40 kB / 0.6853 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.02206/0.6585, allocations: 6.648 MB / 0.6918 GB, free: 8.105 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001913/0.6587, allocations: 62.66 kB / 0.6919 GB, free: 8.047 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002524/0.659, allocations: 128.8 kB / 0.692 GB, free: 7.922 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001786/0.6608, allocations: 401.7 kB / 0.6924 GB, free: 7.527 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006999/0.6678, allocations: 1.22 MB / 0.6936 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007538/0.6753, allocations: 3.327 MB / 0.6968 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006779/0.6821, allocations: 299.6 kB / 0.6971 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001218/0.6833, allocations: 340 kB / 0.6974 GB, free: 2.215 MB / 0.4981 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.0051/0.6884, allocations: 1.775 MB / 0.6991 GB, free: 436 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001088/0.6895, allocations: 321.8 kB / 0.6995 GB, free: 112 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005405/0.6949, allocations: 1.462 MB / 0.7009 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-05/0.6949, allocations: 12.38 kB / 0.7009 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.66e-05/0.695, allocations: 4.875 kB / 0.7009 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.893e-05/0.695, allocations: 7.969 kB / 0.7009 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01801/0.713, allocations: 4.834 MB / 0.7056 GB, free: 9.711 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.542e-05/0.713, allocations: 11.88 kB / 0.7056 GB, free: 9.699 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001581/0.7146, allocations: 163.8 kB / 0.7058 GB, free: 9.539 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001213/0.7158, allocations: 216.7 kB / 0.706 GB, free: 9.324 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001976/0.716, allocations: 20 kB / 0.706 GB, free: 9.305 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006063/0.7221, allocations: 2.707 MB / 0.7087 GB, free: 6.457 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/0.7221, allocations: 0 / 0.7087 GB, free: 6.457 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009506/0.7316, allocations: 3.294 MB / 0.7119 GB, free: 3.141 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001419/0.733, allocations: 374.8 kB / 0.7122 GB, free: 2.754 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009289/0.7339, allocations: 16 kB / 0.7123 GB, free: 2.738 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002394/0.7363, allocations: 56 kB / 0.7123 GB, free: 2.684 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004033/0.7367, allocations: 60.75 kB / 0.7124 GB, free: 2.625 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002104/0.7369, allocations: 28 kB / 0.7124 GB, free: 2.598 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.007823/0.7448, allocations: 2.346 MB / 0.7147 GB, free: 272 kB / 0.5137 GB Notification: Performance of sort global known variables: time 9.91e-07/0.7448, allocations: 3.938 kB / 0.7147 GB, free: 268 kB / 0.5137 GB Notification: Performance of remove unused functions: time 0.008194/0.753, allocations: 0.7772 MB / 0.7154 GB, free: 15.48 MB / 0.5294 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.01029/0.7633, allocations: 3.912 MB / 0.7193 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01082/0.7741, allocations: 3.691 MB / 0.7229 GB, free: 7.859 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.7741, allocations: 0 / 0.7229 GB, free: 7.859 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002646/0.7767, allocations: 0.884 MB / 0.7237 GB, free: 6.961 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003744/0.7805, allocations: 369.4 kB / 0.7241 GB, free: 6.602 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09225/0.8727, allocations: 37.21 MB / 0.7604 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007161/0.8799, allocations: 2.72 MB / 0.7631 GB, free: 9.27 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.007452/0.8873, allocations: 1.695 MB / 0.7647 GB, free: 7.57 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003208/0.8905, allocations: 1.456 MB / 0.7662 GB, free: 6.113 MB / 0.5762 GB Notification: Performance of SimCode: time 1.743e-06/0.8905, allocations: 3.938 kB / 0.7662 GB, free: 6.109 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1158/1.006, allocations: 54.52 MB / 0.8194 GB, free: 15.82 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.88/24.88, allocations: 12.05 kB / 0.8194 GB, free: 15.81 MB / 0.6387 GB " [Timeout remaining time 635] (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: 28.30046128598042]