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.001827/0.001827, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.002701/0.002701, allocations: 214.6 kB / 23.74 MB, free: 4.656 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.52/1.52, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.229/0.229, allocations: 44.91 MB / 358.8 MB, free: 6.305 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="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: 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.002388/0.002388, allocations: 67.89 kB / 0.4931 GB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3465, allocations: 65.47 MB / 0.557 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01241/0.359, allocations: 8.99 MB / 0.5658 GB, free: 14.78 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008388/0.3673, allocations: 3.59 MB / 0.5693 GB, free: 11.18 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001519/0.3689, allocations: 55.75 kB / 0.5694 GB, free: 11.12 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004186/0.373, allocations: 1.701 MB / 0.571 GB, free: 9.414 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004564/0.3776, allocations: 1.58 MB / 0.5726 GB, free: 7.828 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001594/0.3792, allocations: 0.5614 MB / 0.5731 GB, free: 7.266 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006138/0.3853, allocations: 3.584 MB / 0.5766 GB, free: 3.676 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00344/0.3888, allocations: 1.817 MB / 0.5784 GB, free: 1.801 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002523/0.3913, allocations: 1.113 MB / 0.5795 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003145/0.3944, allocations: 1.67 MB / 0.5811 GB, free: 15.01 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000954/0.3954, allocations: 220 kB / 0.5813 GB, free: 14.79 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002816/0.3982, allocations: 1.139 MB / 0.5824 GB, free: 13.65 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002242/0.4005, allocations: 1.453 MB / 0.5838 GB, free: 12.2 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003288/0.4037, allocations: 1.681 MB / 0.5855 GB, free: 10.5 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00905/0.4128, allocations: 5.58 MB / 0.5909 GB, free: 4.902 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.211e-05/0.4128, allocations: 3.984 kB / 0.5909 GB, free: 4.898 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.4128, allocations: 0 / 0.5909 GB, free: 4.898 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002135/0.413, allocations: 0 / 0.5909 GB, free: 4.898 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.01182/0.4248, allocations: 3.802 MB / 0.5947 GB, free: 1.039 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.4249, allocations: 12.03 kB / 0.5947 GB, free: 1.027 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001614/0.4265, allocations: 0.5462 MB / 0.5952 GB, free: 480 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0864/0.5129, allocations: 6.939 MB / 0.602 GB, free: 9.52 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006907/0.5198, allocations: 2.333 MB / 0.6043 GB, free: 7.148 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002163/0.52, allocations: 160.5 kB / 0.6044 GB, free: 6.988 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00102/0.5211, allocations: 227.7 kB / 0.6046 GB, free: 6.766 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01474/0.5358, allocations: 7.336 MB / 0.6118 GB, free: 14.8 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00018/0.536, allocations: 47.62 kB / 0.6118 GB, free: 14.76 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005662/0.5366, allocations: 103.9 kB / 0.6119 GB, free: 14.66 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002936/0.5395, allocations: 1.542 MB / 0.6134 GB, free: 13.11 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01245/0.5519, allocations: 6.182 MB / 0.6195 GB, free: 6.914 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03879/0.5907, allocations: 29.78 MB / 0.6486 GB, free: 8.207 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004509/0.5952, allocations: 1.641 MB / 0.6502 GB, free: 6.527 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001571/0.5968, allocations: 0.9846 MB / 0.6511 GB, free: 5.527 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003286/0.5971, allocations: 96.3 kB / 0.6512 GB, free: 5.434 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.26e-05/0.5972, allocations: 39 kB / 0.6513 GB, free: 5.387 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 4.218e-06/0.5972, allocations: 3.938 kB / 0.6513 GB, free: 5.383 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.0351/0.6323, allocations: 10.9 MB / 0.6619 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001393/0.6324, allocations: 192.6 kB / 0.6621 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005703/0.6381, allocations: 3.622 MB / 0.6656 GB, free: 6.559 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002359/0.6384, allocations: 41.7 kB / 0.6657 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002323/0.6407, allocations: 2.667 MB / 0.6683 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007233/0.6414, allocations: 0.5545 MB / 0.6688 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001593/0.643, allocations: 1.056 MB / 0.6698 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.6432, allocations: 301.1 kB / 0.6701 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002963/0.6461, allocations: 1.626 MB / 0.6717 GB, free: 268 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006322/0.6524, allocations: 4.973 MB / 0.6766 GB, free: 9.598 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0102/0.6626, allocations: 7.168 MB / 0.6836 GB, free: 0.7734 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001034/0.6627, allocations: 32 kB / 0.6836 GB, free: 0.7422 MB / 0.5137 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01384/0.6766, allocations: 6.572 MB / 0.69 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001058/0.6767, allocations: 56 kB / 0.6901 GB, free: 10.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001873/0.6769, allocations: 120 kB / 0.6902 GB, free: 9.984 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/0.678, allocations: 408.4 kB / 0.6906 GB, free: 9.586 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004108/0.6821, allocations: 1.181 MB / 0.6917 GB, free: 8.402 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004404/0.6865, allocations: 3.217 MB / 0.6949 GB, free: 5.074 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004148/0.6906, allocations: 287.7 kB / 0.6952 GB, free: 4.793 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009229/0.6916, allocations: 324 kB / 0.6955 GB, free: 4.477 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.004058/0.6956, allocations: 1.693 MB / 0.6971 GB, free: 2.77 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008817/0.6965, allocations: 313.9 kB / 0.6974 GB, free: 2.461 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003723/0.7002, allocations: 1.714 MB / 0.6991 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.883e-05/0.7003, allocations: 20.36 kB / 0.6991 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.217e-05/0.7003, allocations: 7.922 kB / 0.6991 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.17e-05/0.7003, allocations: 16.09 kB / 0.6991 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01118/0.7115, allocations: 5.213 MB / 0.7042 GB, free: 11.39 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.536e-05/0.7115, allocations: 3.938 kB / 0.7042 GB, free: 11.39 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.7126, allocations: 191.7 kB / 0.7044 GB, free: 11.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007361/0.7133, allocations: 228.7 kB / 0.7046 GB, free: 10.98 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001111/0.7134, allocations: 23.98 kB / 0.7046 GB, free: 10.95 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003264/0.7167, allocations: 2.584 MB / 0.7072 GB, free: 8.25 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/0.7167, allocations: 11.95 kB / 0.7072 GB, free: 8.238 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005724/0.7224, allocations: 3.732 MB / 0.7108 GB, free: 4.477 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008648/0.7233, allocations: 289.8 kB / 0.7111 GB, free: 4.191 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003627/0.7236, allocations: 20 kB / 0.7111 GB, free: 4.172 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001162/0.7248, allocations: 63.91 kB / 0.7112 GB, free: 4.109 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002078/0.725, allocations: 84.73 kB / 0.7113 GB, free: 4.027 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.733e-05/0.7251, allocations: 39.98 kB / 0.7113 GB, free: 3.988 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003785/0.7289, allocations: 2.257 MB / 0.7135 GB, free: 1.742 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7289, allocations: 3.938 kB / 0.7135 GB, free: 1.738 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003994/0.7329, allocations: 0.7616 MB / 0.7143 GB, free: 0.9766 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.006399/0.7393, allocations: 4.361 MB / 0.7185 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006738/0.746, allocations: 3.787 MB / 0.7222 GB, free: 8.801 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.746, allocations: 0 / 0.7222 GB, free: 8.801 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001673/0.7477, allocations: 0.9944 MB / 0.7232 GB, free: 7.789 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002398/0.7501, allocations: 366.4 kB / 0.7235 GB, free: 7.43 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3074/1.057, allocations: 36.61 MB / 0.7593 GB, free: 136.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002978/1.06, allocations: 2.629 MB / 0.7619 GB, free: 133.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003767/1.064, allocations: 1.698 MB / 0.7635 GB, free: 132.2 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001909/1.066, allocations: 1.413 MB / 0.7649 GB, free: 130.8 MB / 0.5606 GB Notification: Performance of SimCode: time 1.974e-06/1.066, allocations: 0 / 0.7649 GB, free: 130.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09608/1.162, allocations: 57.93 MB / 0.8215 GB, free: 73.29 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.02/26.18, allocations: 5.562 kB / 0.8215 GB, free: 73.29 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.614406262990087]