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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001513/0.001513, allocations: 112.8 kB / 18.5 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001797/0.001797, allocations: 189.2 kB / 21.44 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 225.6 MB / 249.8 MB, free: 3.48 MB / 190.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.2324/0.2324, allocations: 44.92 MB / 349.6 MB, free: 1.707 MB / 270.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 68.06 kB / 491.8 MB, free: 30.19 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1076, allocations: 64.26 MB / 0.543 GB, free: 4.117 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01186/0.1195, allocations: 9.082 MB / 0.5519 GB, free: 10.98 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007501/0.127, allocations: 3.57 MB / 0.5554 GB, free: 7.398 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001217/0.1282, allocations: 47.88 kB / 0.5554 GB, free: 7.352 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003635/0.1319, allocations: 1.701 MB / 0.5571 GB, free: 5.645 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004121/0.136, allocations: 1.619 MB / 0.5586 GB, free: 4.02 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001418/0.1374, allocations: 0.5575 MB / 0.5592 GB, free: 3.461 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005248/0.1426, allocations: 3.589 MB / 0.5627 GB, free: 15.86 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002897/0.1455, allocations: 1.892 MB / 0.5645 GB, free: 13.92 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001906/0.1474, allocations: 1.121 MB / 0.5656 GB, free: 12.79 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0027/0.1501, allocations: 1.69 MB / 0.5673 GB, free: 11.1 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006663/0.1508, allocations: 224 kB / 0.5675 GB, free: 10.88 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002331/0.1531, allocations: 1.162 MB / 0.5686 GB, free: 9.715 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001816/0.155, allocations: 1.496 MB / 0.5701 GB, free: 8.215 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002712/0.1577, allocations: 1.728 MB / 0.5718 GB, free: 6.477 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00813/0.1658, allocations: 5.723 MB / 0.5774 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.1658, allocations: 4 kB / 0.5774 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1658, allocations: 0 / 0.5774 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000195/0.166, allocations: 0 / 0.5774 GB, free: 0.7266 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: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.009998/0.176, allocations: 3.967 MB / 0.5812 GB, free: 12.68 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.176, allocations: 8.031 kB / 0.5813 GB, free: 12.67 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009336/0.177, allocations: 0.547 MB / 0.5818 GB, free: 12.11 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0823/0.2593, allocations: 6.974 MB / 0.5886 GB, free: 5.129 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00679/0.2661, allocations: 2.534 MB / 0.5911 GB, free: 2.531 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001884/0.2662, allocations: 168.5 kB / 0.5912 GB, free: 2.363 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009724/0.2672, allocations: 223.8 kB / 0.5914 GB, free: 2.145 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0126/0.2798, allocations: 7.525 MB / 0.5988 GB, free: 9.996 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00011/0.2799, allocations: 43.69 kB / 0.5988 GB, free: 9.953 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003643/0.2803, allocations: 107.9 kB / 0.5989 GB, free: 9.848 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002749/0.283, allocations: 1.597 MB / 0.6005 GB, free: 8.25 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01265/0.2957, allocations: 6.343 MB / 0.6067 GB, free: 1.898 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3096/0.6053, allocations: 30.28 MB / 0.6363 GB, free: 33.7 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004703/0.61, allocations: 2.09 MB / 0.6383 GB, free: 32.62 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001499/0.6115, allocations: 0.9869 MB / 0.6393 GB, free: 32.22 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003464/0.6118, allocations: 315.6 kB / 0.6396 GB, free: 31.93 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.735e-05/0.6118, allocations: 47.56 kB / 0.6396 GB, free: 31.88 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 3.757e-06/0.6118, allocations: 0 / 0.6396 GB, free: 31.88 MB / 462.1 MB Notification: Performance of matching and sorting (n=132): time 0.03529/0.6471, allocations: 11.12 MB / 0.6505 GB, free: 26.72 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.765e-05/0.6472, allocations: 195.8 kB / 0.6507 GB, free: 26.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005253/0.6525, allocations: 3.675 MB / 0.6543 GB, free: 24.66 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003527/0.6528, allocations: 41.17 kB / 0.6543 GB, free: 24.62 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001466/0.6543, allocations: 2.714 MB / 0.6569 GB, free: 22.41 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005874/0.6549, allocations: 0.5523 MB / 0.6575 GB, free: 21.96 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001127/0.656, allocations: 1.057 MB / 0.6585 GB, free: 21.35 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.434e-05/0.6561, allocations: 304.6 kB / 0.6588 GB, free: 21.05 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002025/0.6581, allocations: 1.633 MB / 0.6604 GB, free: 20.22 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003065/0.6611, allocations: 4.995 MB / 0.6653 GB, free: 13.53 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005906/0.6671, allocations: 7.205 MB / 0.6723 GB, free: 4.66 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.018e-05/0.6671, allocations: 36 kB / 0.6723 GB, free: 4.625 MB / 462.1 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01056/0.6777, allocations: 6.595 MB / 0.6788 GB, free: 14.03 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.026e-05/0.6778, allocations: 56 kB / 0.6788 GB, free: 13.97 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000148/0.6779, allocations: 116 kB / 0.679 GB, free: 13.86 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001027/0.679, allocations: 401.4 kB / 0.6793 GB, free: 13.46 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003841/0.6828, allocations: 1.193 MB / 0.6805 GB, free: 12.27 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004243/0.687, allocations: 3.315 MB / 0.6837 GB, free: 8.816 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003837/0.6909, allocations: 291.5 kB / 0.684 GB, free: 8.531 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007033/0.6916, allocations: 328 kB / 0.6843 GB, free: 8.211 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.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 (643): * Single equations (assignments): 639 * 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.003058/0.6946, allocations: 1.725 MB / 0.686 GB, free: 6.477 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007559/0.6954, allocations: 317.9 kB / 0.6863 GB, free: 6.164 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003635/0.699, allocations: 1.729 MB / 0.688 GB, free: 4.422 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.184e-05/0.6991, allocations: 16 kB / 0.688 GB, free: 4.406 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.476e-05/0.6991, allocations: 4 kB / 0.688 GB, free: 4.402 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.817e-05/0.6991, allocations: 3.984 kB / 0.688 GB, free: 4.398 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01253/0.7116, allocations: 5.307 MB / 0.6932 GB, free: 15.03 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-05/0.7116, allocations: 8.062 kB / 0.6932 GB, free: 15.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/0.7128, allocations: 191.7 kB / 0.6934 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007708/0.7136, allocations: 236.6 kB / 0.6936 GB, free: 14.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000155/0.7137, allocations: 21.17 kB / 0.6936 GB, free: 14.58 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003423/0.7171, allocations: 2.693 MB / 0.6963 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.7171, allocations: 4.656 kB / 0.6963 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006444/0.7236, allocations: 3.737 MB / 0.6999 GB, free: 7.98 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001229/0.7248, allocations: 378.7 kB / 0.7003 GB, free: 7.59 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008001/0.7256, allocations: 20 kB / 0.7003 GB, free: 7.57 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001677/0.7273, allocations: 67.84 kB / 0.7004 GB, free: 7.504 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002628/0.7276, allocations: 78 kB / 0.7004 GB, free: 7.43 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/0.7277, allocations: 32 kB / 0.7005 GB, free: 7.398 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004623/0.7323, allocations: 2.301 MB / 0.7027 GB, free: 5.109 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.7323, allocations: 4.062 kB / 0.7027 GB, free: 5.105 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004659/0.737, allocations: 0.7803 MB / 0.7035 GB, free: 4.328 MB / 494.1 MB 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.006784/0.7437, allocations: 4.36 MB / 0.7078 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006988/0.7507, allocations: 3.8 MB / 0.7115 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/0.7507, allocations: 0 / 0.7115 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001736/0.7525, allocations: 0.9976 MB / 0.7124 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003146/0.7556, allocations: 388 kB / 0.7128 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06757/0.8232, allocations: 36.91 MB / 0.7488 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004238/0.8274, allocations: 2.684 MB / 0.7515 GB, free: 14.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00461/0.832, allocations: 1.699 MB / 0.7531 GB, free: 12.39 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002813/0.8348, allocations: 1.452 MB / 0.7545 GB, free: 10.94 MB / 0.545 GB Notification: Performance of SimCode: time 1.162e-06/0.8348, allocations: 0 / 0.7545 GB, free: 10.94 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1204/0.9552, allocations: 54.37 MB / 0.8076 GB, free: 4.863 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.07/24.02, allocations: 10.86 kB / 0.8077 GB, free: 4.855 MB / 0.5919 GB " [Timeout remaining time 636] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 27.53850042494014]