Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001339/0.001339, allocations: 110.2 kB / 19.69 MB, free: 2.203 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.001433/0.001433, allocations: 224.9 kB / 23.01 MB, free: 5.039 MB / 14.72 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 1.453/1.453, allocations: 207.6 MB / 233.8 MB, free: 9.977 MB / 190.1 MB " [Timeout remaining time 178] 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.2305/0.2305, allocations: 44.24 MB / 330.3 MB, free: 9.512 MB / 270.1 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.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002235/0.002235, allocations: 74.23 kB / 467.5 MB, free: 4.512 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1171, allocations: 61.04 MB / 0.5161 GB, free: 7.332 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01187/0.129, allocations: 9.506 MB / 0.5254 GB, free: 13.78 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007863/0.1369, allocations: 3.638 MB / 0.529 GB, free: 10.13 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001501/0.1384, allocations: 59.75 kB / 0.529 GB, free: 10.07 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003762/0.1421, allocations: 1.728 MB / 0.5307 GB, free: 8.336 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004755/0.1469, allocations: 1.681 MB / 0.5324 GB, free: 6.648 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001451/0.1483, allocations: 0.5653 MB / 0.5329 GB, free: 6.082 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005167/0.1535, allocations: 3.51 MB / 0.5363 GB, free: 2.562 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002673/0.1562, allocations: 1.915 MB / 0.5382 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2572/0.4134, allocations: 1.178 MB / 0.5394 GB, free: 11.82 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003469/0.4169, allocations: 1.778 MB / 0.5411 GB, free: 11.81 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001029/0.4179, allocations: 237.3 kB / 0.5413 GB, free: 11.81 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002901/0.4208, allocations: 1.15 MB / 0.5424 GB, free: 11.81 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0024/0.4232, allocations: 1.559 MB / 0.544 GB, free: 11.62 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00321/0.4264, allocations: 1.804 MB / 0.5457 GB, free: 10.98 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009899/0.4363, allocations: 5.965 MB / 0.5516 GB, free: 10.07 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.285e-06/0.4363, allocations: 4.938 kB / 0.5516 GB, free: 10.07 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4363, allocations: 1.156 kB / 0.5516 GB, free: 10.07 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000249/0.4366, allocations: 2.062 kB / 0.5516 GB, free: 10.07 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.01267/0.4493, allocations: 4.024 MB / 0.5555 GB, free: 8.188 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.4493, allocations: 9.75 kB / 0.5555 GB, free: 8.188 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001305/0.4506, allocations: 0.5811 MB / 0.5561 GB, free: 7.93 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08013/0.5307, allocations: 6.993 MB / 0.5629 GB, free: 7.234 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007267/0.538, allocations: 2.661 MB / 0.5655 GB, free: 5.762 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001785/0.5382, allocations: 171.4 kB / 0.5657 GB, free: 5.711 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001514/0.5397, allocations: 231.3 kB / 0.5659 GB, free: 5.66 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01402/0.5537, allocations: 7.827 MB / 0.5735 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001186/0.5538, allocations: 36.86 kB / 0.5736 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004214/0.5543, allocations: 114.7 kB / 0.5737 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002738/0.557, allocations: 1.66 MB / 0.5753 GB, free: 212 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01372/0.5707, allocations: 6.63 MB / 0.5818 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04321/0.6139, allocations: 31.05 MB / 0.6121 GB, free: 13.79 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004907/0.6188, allocations: 1.757 MB / 0.6138 GB, free: 12.01 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001598/0.6204, allocations: 1.027 MB / 0.6148 GB, free: 10.98 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003048/0.6207, allocations: 94.11 kB / 0.6149 GB, free: 10.89 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.582e-05/0.6208, allocations: 47.81 kB / 0.6149 GB, free: 10.84 MB / 462.1 MB Notification: Performance of pre-optimization done (n=117): time 3.867e-06/0.6208, allocations: 0 / 0.6149 GB, free: 10.84 MB / 462.1 MB Notification: Performance of matching and sorting (n=141): time 0.03613/0.6569, allocations: 11.41 MB / 0.6261 GB, free: 15.4 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/0.657, allocations: 196.6 kB / 0.6263 GB, free: 15.17 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00625/0.6633, allocations: 3.761 MB / 0.6299 GB, free: 11.41 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002882/0.6636, allocations: 41.7 kB / 0.63 GB, free: 11.37 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002451/0.666, allocations: 2.809 MB / 0.6327 GB, free: 8.574 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008435/0.6669, allocations: 0.5725 MB / 0.6333 GB, free: 8.008 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001873/0.6687, allocations: 1.094 MB / 0.6344 GB, free: 6.906 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.6689, allocations: 305.1 kB / 0.6346 GB, free: 6.605 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003086/0.672, allocations: 1.7 MB / 0.6363 GB, free: 4.902 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006261/0.6782, allocations: 5.14 MB / 0.6413 GB, free: 14.09 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009663/0.6879, allocations: 7.432 MB / 0.6486 GB, free: 5.379 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001056/0.688, allocations: 36 kB / 0.6486 GB, free: 5.344 MB / 494.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01325/0.7013, allocations: 6.799 MB / 0.6553 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.864e-05/0.7013, allocations: 56 kB / 0.6553 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001312/0.7015, allocations: 124 kB / 0.6554 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009873/0.7025, allocations: 405.2 kB / 0.6558 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004108/0.7066, allocations: 1.245 MB / 0.657 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004184/0.7108, allocations: 3.227 MB / 0.6602 GB, free: 9.379 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004144/0.7149, allocations: 302.8 kB / 0.6605 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007638/0.7157, allocations: 335.9 kB / 0.6608 GB, free: 8.758 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (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 (665): * Single equations (assignments): 661 * 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.003419/0.7191, allocations: 1.782 MB / 0.6625 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000732/0.7198, allocations: 329.8 kB / 0.6628 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003697/0.7235, allocations: 1.846 MB / 0.6647 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.903e-05/0.7235, allocations: 19.94 kB / 0.6647 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.919e-06/0.7235, allocations: 8 kB / 0.6647 GB, free: 4.754 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.376e-05/0.7236, allocations: 6.703 kB / 0.6647 GB, free: 4.75 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01132/0.7349, allocations: 5.522 MB / 0.6701 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.179e-05/0.7349, allocations: 0 / 0.6701 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/0.736, allocations: 219.7 kB / 0.6703 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007084/0.7367, allocations: 232.6 kB / 0.6705 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001086/0.7369, allocations: 27.98 kB / 0.6705 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003252/0.7401, allocations: 2.606 MB / 0.6731 GB, free: 12 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.7401, allocations: 4.031 kB / 0.6731 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006343/0.7465, allocations: 3.903 MB / 0.6769 GB, free: 8.059 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001621/0.7481, allocations: 493.5 kB / 0.6774 GB, free: 7.574 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006165/0.7487, allocations: 28 kB / 0.6774 GB, free: 7.547 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001243/0.7499, allocations: 71.91 kB / 0.6775 GB, free: 7.477 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002031/0.7501, allocations: 73.83 kB / 0.6775 GB, free: 7.406 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001101/0.7502, allocations: 43.19 kB / 0.6776 GB, free: 7.367 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004616/0.7549, allocations: 2.35 MB / 0.6799 GB, free: 5.031 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.21e-07/0.7549, allocations: 0 / 0.6799 GB, free: 5.031 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004933/0.7598, allocations: 0.8085 MB / 0.6807 GB, free: 4.223 MB / 0.5137 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 (112): * Single equations (assignments): 108 * 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.00672/0.7665, allocations: 4.545 MB / 0.6851 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007391/0.7739, allocations: 3.963 MB / 0.689 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/0.7739, allocations: 0 / 0.689 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001816/0.7757, allocations: 1.056 MB / 0.69 GB, free: 10.63 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002401/0.7781, allocations: 383.7 kB / 0.6904 GB, free: 10.27 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06076/0.8389, allocations: 38.23 MB / 0.7277 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003463/0.8423, allocations: 2.756 MB / 0.7304 GB, free: 12.09 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00407/0.8464, allocations: 1.762 MB / 0.7321 GB, free: 10.33 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002305/0.8487, allocations: 1.507 MB / 0.7336 GB, free: 8.82 MB / 0.5762 GB Notification: Performance of SimCode: time 1.092e-06/0.8487, allocations: 0 / 0.7336 GB, free: 8.82 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3782/1.227, allocations: 60.29 MB / 0.7925 GB, free: 206 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.68/21.91, allocations: 1.25 kB / 0.7925 GB, free: 206 MB / 0.6075 GB " [Timeout remaining time 638] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.csv. Warning: Get data of variable Distance1.distance from file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 24.99435910199827]