Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001807/0.001807, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002292/0.002292, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.481/1.481, allocations: 230.6 MB / 258.3 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2323/0.2323, allocations: 44.9 MB / 359.6 MB, free: 6.316 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 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.002082/0.002082, allocations: 68.19 kB / 0.4938 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3538/0.3559, allocations: 65.47 MB / 0.5578 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01228/0.3682, allocations: 8.999 MB / 0.5666 GB, free: 14.76 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007576/0.3757, allocations: 3.586 MB / 0.5701 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001232/0.377, allocations: 59.69 kB / 0.5701 GB, free: 11.11 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003576/0.3806, allocations: 1.701 MB / 0.5718 GB, free: 9.398 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004098/0.3847, allocations: 1.576 MB / 0.5733 GB, free: 7.816 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001356/0.386, allocations: 0.5574 MB / 0.5739 GB, free: 7.258 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005434/0.3914, allocations: 3.584 MB / 0.5774 GB, free: 3.668 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00289/0.3943, allocations: 1.829 MB / 0.5792 GB, free: 1.781 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002063/0.3964, allocations: 1.109 MB / 0.5802 GB, free: 0.668 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002951/0.3993, allocations: 1.674 MB / 0.5819 GB, free: 14.99 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008292/0.4002, allocations: 220 kB / 0.5821 GB, free: 14.77 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002684/0.4029, allocations: 1.135 MB / 0.5832 GB, free: 13.64 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002151/0.405, allocations: 1.457 MB / 0.5846 GB, free: 12.18 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003202/0.4082, allocations: 1.677 MB / 0.5863 GB, free: 10.49 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008433/0.4166, allocations: 5.58 MB / 0.5917 GB, free: 4.887 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.4167, allocations: 0 / 0.5917 GB, free: 4.887 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4167, allocations: 0 / 0.5917 GB, free: 4.887 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002036/0.4169, allocations: 0 / 0.5917 GB, free: 4.887 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.01172/0.4286, allocations: 3.806 MB / 0.5954 GB, free: 1.023 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.4286, allocations: 8.031 kB / 0.5954 GB, free: 1.016 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001149/0.4287, allocations: 76.39 kB / 0.5955 GB, free: 0.9375 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001386/0.4301, allocations: 0.5423 MB / 0.596 GB, free: 392 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09238/0.5225, allocations: 6.951 MB / 0.6028 GB, free: 9.422 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006637/0.5291, allocations: 2.325 MB / 0.6051 GB, free: 7.059 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002041/0.5294, allocations: 168.2 kB / 0.6053 GB, free: 6.891 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009561/0.5303, allocations: 215.8 kB / 0.6055 GB, free: 6.68 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01384/0.5442, allocations: 7.339 MB / 0.6126 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001434/0.5443, allocations: 39.7 kB / 0.6127 GB, free: 14.68 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007243/0.545, allocations: 111.8 kB / 0.6128 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003006/0.548, allocations: 1.542 MB / 0.6143 GB, free: 13.02 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0128/0.5608, allocations: 6.19 MB / 0.6203 GB, free: 6.816 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04221/0.603, allocations: 29.78 MB / 0.6494 GB, free: 8.113 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004877/0.6079, allocations: 1.641 MB / 0.651 GB, free: 6.434 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001767/0.6097, allocations: 0.9807 MB / 0.652 GB, free: 5.438 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003545/0.61, allocations: 92.31 kB / 0.6521 GB, free: 5.348 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.033e-05/0.6101, allocations: 50.92 kB / 0.6521 GB, free: 5.289 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.967e-06/0.6101, allocations: 0 / 0.6521 GB, free: 5.289 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03708/0.6472, allocations: 10.9 MB / 0.6627 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001353/0.6473, allocations: 196.5 kB / 0.6629 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00634/0.6537, allocations: 3.618 MB / 0.6665 GB, free: 6.465 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002464/0.6539, allocations: 45.69 kB / 0.6665 GB, free: 6.414 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002498/0.6564, allocations: 2.667 MB / 0.6691 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007849/0.6572, allocations: 0.5506 MB / 0.6697 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002026/0.6592, allocations: 1.048 MB / 0.6707 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.6594, allocations: 309.1 kB / 0.671 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002898/0.6623, allocations: 1.626 MB / 0.6726 GB, free: 172 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005974/0.6682, allocations: 4.965 MB / 0.6774 GB, free: 9.512 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009522/0.6778, allocations: 7.169 MB / 0.6844 GB, free: 0.6875 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000114/0.6779, allocations: 35.94 kB / 0.6844 GB, free: 0.6523 MB / 0.5137 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01324/0.6911, allocations: 6.578 MB / 0.6909 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001426/0.6913, allocations: 56 kB / 0.6909 GB, free: 10.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002038/0.6915, allocations: 120 kB / 0.691 GB, free: 9.898 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001119/0.6926, allocations: 396.6 kB / 0.6914 GB, free: 9.508 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004165/0.6967, allocations: 1.193 MB / 0.6926 GB, free: 8.312 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004458/0.7012, allocations: 3.214 MB / 0.6957 GB, free: 4.984 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004027/0.7052, allocations: 287.7 kB / 0.696 GB, free: 4.703 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009444/0.7062, allocations: 323.9 kB / 0.6963 GB, free: 4.387 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.003499/0.7097, allocations: 1.701 MB / 0.698 GB, free: 2.672 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007493/0.7104, allocations: 317.9 kB / 0.6983 GB, free: 2.359 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003549/0.714, allocations: 1.714 MB / 0.6999 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.829e-05/0.714, allocations: 12 kB / 0.6999 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/0.714, allocations: 7.938 kB / 0.7 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.714, allocations: 4.094 kB / 0.7 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01071/0.7247, allocations: 5.219 MB / 0.7051 GB, free: 11.31 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.01e-05/0.7247, allocations: 0 / 0.7051 GB, free: 11.31 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.7258, allocations: 195.7 kB / 0.7052 GB, free: 11.12 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00072/0.7265, allocations: 228.7 kB / 0.7055 GB, free: 10.89 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001134/0.7266, allocations: 20 kB / 0.7055 GB, free: 10.87 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003241/0.7299, allocations: 2.592 MB / 0.708 GB, free: 8.16 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.7299, allocations: 3.938 kB / 0.708 GB, free: 8.156 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005803/0.7357, allocations: 3.74 MB / 0.7117 GB, free: 4.383 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008134/0.7365, allocations: 289.8 kB / 0.7119 GB, free: 4.098 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005037/0.737, allocations: 20 kB / 0.712 GB, free: 4.078 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001237/0.7382, allocations: 67.84 kB / 0.712 GB, free: 4.012 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001965/0.7384, allocations: 80.44 kB / 0.7121 GB, free: 3.934 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.641e-05/0.7385, allocations: 32 kB / 0.7121 GB, free: 3.902 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003963/0.7425, allocations: 2.269 MB / 0.7144 GB, free: 1.645 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7425, allocations: 0 / 0.7144 GB, free: 1.645 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003833/0.7463, allocations: 0.7578 MB / 0.7151 GB, free: 0.8867 MB / 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.006304/0.7526, allocations: 4.371 MB / 0.7194 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006633/0.7592, allocations: 3.79 MB / 0.7231 GB, free: 8.703 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.7592, allocations: 0 / 0.7231 GB, free: 8.703 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001636/0.7609, allocations: 0.9861 MB / 0.724 GB, free: 7.699 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002374/0.7633, allocations: 363.7 kB / 0.7244 GB, free: 7.34 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2894/1.053, allocations: 36.6 MB / 0.7601 GB, free: 136.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002071/1.055, allocations: 2.638 MB / 0.7627 GB, free: 133.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00317/1.058, allocations: 1.702 MB / 0.7644 GB, free: 132.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001682/1.06, allocations: 1.401 MB / 0.7657 GB, free: 130.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.132e-06/1.06, allocations: 0 / 0.7657 GB, free: 130.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1092/1.169, allocations: 57.98 MB / 0.8223 GB, free: 73.13 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.54/25.71, allocations: 4.062 kB / 0.8223 GB, free: 73.13 MB / 0.5606 GB " [Timeout remaining time 634] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 29.65110238501802]