Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.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.00137/0.00137, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.001585/0.001585, allocations: 213.8 kB / 23.73 MB, free: 4.41 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.437/1.437, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2278/0.2278, allocations: 46.96 MB / 360.9 MB, free: 4.145 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.Distance2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002092/0.002092, allocations: 64.14 kB / 0.4961 GB, free: 7.758 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3612/0.3633, allocations: 66.04 MB / 0.5606 GB, free: 4.398 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01138/0.3747, allocations: 8.025 MB / 0.5684 GB, free: 12.33 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008921/0.3836, allocations: 3.376 MB / 0.5717 GB, free: 8.945 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002271/0.3859, allocations: 67.69 kB / 0.5718 GB, free: 8.879 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00421/0.3901, allocations: 1.865 MB / 0.5736 GB, free: 7.008 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005214/0.3953, allocations: 1.619 MB / 0.5752 GB, free: 5.383 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001706/0.397, allocations: 0.5731 MB / 0.5757 GB, free: 4.809 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006229/0.4033, allocations: 3.669 MB / 0.5793 GB, free: 1.133 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002875/0.4061, allocations: 1.983 MB / 0.5813 GB, free: 15.09 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001871/0.408, allocations: 1.187 MB / 0.5824 GB, free: 13.9 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002582/0.4106, allocations: 1.694 MB / 0.5841 GB, free: 12.2 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000663/0.4112, allocations: 240 kB / 0.5843 GB, free: 11.96 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002182/0.4134, allocations: 1.022 MB / 0.5853 GB, free: 10.94 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001747/0.4152, allocations: 1.55 MB / 0.5868 GB, free: 9.387 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001755/0.4169, allocations: 1.32 MB / 0.5881 GB, free: 8.059 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007604/0.4245, allocations: 5.903 MB / 0.5939 GB, free: 2.133 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.4245, allocations: 0 / 0.5939 GB, free: 2.133 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4245, allocations: 0 / 0.5939 GB, free: 2.133 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001859/0.4247, allocations: 4 kB / 0.5939 GB, free: 2.129 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.01176/0.4365, allocations: 3.975 MB / 0.5978 GB, free: 14.1 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/0.4365, allocations: 12.03 kB / 0.5978 GB, free: 14.09 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009995/0.4375, allocations: 0.5753 MB / 0.5983 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08413/0.5217, allocations: 6.966 MB / 0.6051 GB, free: 6.523 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006703/0.5284, allocations: 2.404 MB / 0.6075 GB, free: 4.082 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001611/0.5285, allocations: 176.8 kB / 0.6076 GB, free: 3.906 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005875/0.5291, allocations: 239.8 kB / 0.6079 GB, free: 3.672 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01342/0.5425, allocations: 7.786 MB / 0.6155 GB, free: 11.22 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001084/0.5426, allocations: 39.64 kB / 0.6155 GB, free: 11.18 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003398/0.543, allocations: 115.9 kB / 0.6156 GB, free: 11.07 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002812/0.5458, allocations: 1.582 MB / 0.6172 GB, free: 9.48 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01275/0.5585, allocations: 6.437 MB / 0.6235 GB, free: 3.035 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04125/0.5998, allocations: 30.15 MB / 0.6529 GB, free: 3.902 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004726/0.6045, allocations: 1.889 MB / 0.6548 GB, free: 1.977 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001482/0.606, allocations: 0.9793 MB / 0.6557 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002853/0.6063, allocations: 83.94 kB / 0.6558 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.991e-05/0.6063, allocations: 46.55 kB / 0.6558 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 4.919e-06/0.6063, allocations: 4 kB / 0.6558 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02435/0.6307, allocations: 8.437 MB / 0.6641 GB, free: 8.355 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001541/0.6308, allocations: 192.5 kB / 0.6643 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007657/0.6385, allocations: 3.978 MB / 0.6681 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000214/0.6387, allocations: 41.7 kB / 0.6682 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002695/0.6414, allocations: 2.834 MB / 0.671 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007261/0.6421, allocations: 0.508 MB / 0.6714 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002575/0.6447, allocations: 1.103 MB / 0.6725 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.6449, allocations: 305.1 kB / 0.6728 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002817/0.6477, allocations: 1.576 MB / 0.6744 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005954/0.6536, allocations: 5.199 MB / 0.6794 GB, free: 6.719 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01015/0.6638, allocations: 7.318 MB / 0.6866 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001829/0.664, allocations: 36 kB / 0.6866 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01411/0.6781, allocations: 6.635 MB / 0.6931 GB, free: 6.953 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001456/0.6782, allocations: 63.98 kB / 0.6932 GB, free: 6.891 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002124/0.6784, allocations: 128 kB / 0.6933 GB, free: 6.766 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/0.6795, allocations: 401.1 kB / 0.6937 GB, free: 6.371 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00402/0.6835, allocations: 1.224 MB / 0.6949 GB, free: 5.145 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004342/0.6879, allocations: 3.202 MB / 0.698 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003981/0.6918, allocations: 283.6 kB / 0.6983 GB, free: 1.551 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009393/0.6928, allocations: 348 kB / 0.6986 GB, free: 1.211 MB / 0.5294 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.004065/0.6969, allocations: 1.779 MB / 0.7003 GB, free: 15.41 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008676/0.6977, allocations: 321.8 kB / 0.7006 GB, free: 15.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003347/0.7011, allocations: 1.461 MB / 0.7021 GB, free: 13.62 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-05/0.7011, allocations: 16 kB / 0.7021 GB, free: 13.61 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-05/0.7011, allocations: 11.94 kB / 0.7021 GB, free: 13.59 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.7011, allocations: 3.984 kB / 0.7021 GB, free: 13.59 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0108/0.7119, allocations: 4.608 MB / 0.7066 GB, free: 8.93 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.081e-05/0.7119, allocations: 0 / 0.7066 GB, free: 8.93 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008148/0.7128, allocations: 159.8 kB / 0.7067 GB, free: 8.773 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000699/0.7135, allocations: 228.7 kB / 0.707 GB, free: 8.547 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001048/0.7136, allocations: 27.92 kB / 0.707 GB, free: 8.52 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003428/0.717, allocations: 2.568 MB / 0.7095 GB, free: 5.836 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.717, allocations: 0 / 0.7095 GB, free: 5.836 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005194/0.7222, allocations: 3.293 MB / 0.7127 GB, free: 2.516 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009947/0.7232, allocations: 301.6 kB / 0.713 GB, free: 2.219 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000589/0.7238, allocations: 16 kB / 0.713 GB, free: 2.203 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001235/0.725, allocations: 51.94 kB / 0.7131 GB, free: 2.152 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001892/0.7252, allocations: 68.31 kB / 0.7131 GB, free: 2.086 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.975e-05/0.7253, allocations: 32 kB / 0.7132 GB, free: 2.055 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004367/0.7296, allocations: 2.35 MB / 0.7154 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7e-08/0.7296, allocations: 0 / 0.7154 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004471/0.7341, allocations: 0.7655 MB / 0.7162 GB, free: 14.95 MB / 0.5606 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.006058/0.7402, allocations: 3.911 MB / 0.72 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006563/0.7467, allocations: 3.668 MB / 0.7236 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.7467, allocations: 0 / 0.7236 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00165/0.7484, allocations: 0.908 MB / 0.7245 GB, free: 6.434 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002738/0.7511, allocations: 378.7 kB / 0.7248 GB, free: 6.066 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3062/1.057, allocations: 37.26 MB / 0.7612 GB, free: 130.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002193/1.06, allocations: 2.158 MB / 0.7633 GB, free: 128.4 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003318/1.063, allocations: 1.713 MB / 0.765 GB, free: 126.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001436/1.064, allocations: 1.452 MB / 0.7664 GB, free: 125.3 MB / 0.5606 GB Notification: Performance of SimCode: time 1.272e-06/1.064, allocations: 0 / 0.7664 GB, free: 125.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09463/1.159, allocations: 54.34 MB / 0.8195 GB, free: 71.73 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.83/16.98, allocations: 7.75 kB / 0.8195 GB, free: 71.72 MB / 0.5606 GB " [Timeout remaining time 643] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --stepSize=9.996e-05 --timeout=50 --tolerance=1e-10 ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/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_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.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: 20.370147137902677]