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.001706/0.001706, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001436/0.001436, allocations: 211.4 kB / 23.73 MB, free: 4.523 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.474/1.474, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.2411/0.2411, allocations: 46.96 MB / 360.9 MB, free: 4.035 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.002162/0.002162, allocations: 67.89 kB / 0.4961 GB, free: 7.723 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3536/0.3558, allocations: 66.03 MB / 0.5606 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01066/0.3665, allocations: 8.027 MB / 0.5684 GB, free: 12.18 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007608/0.3741, allocations: 3.384 MB / 0.5717 GB, free: 8.789 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001401/0.3755, allocations: 63.69 kB / 0.5718 GB, free: 8.727 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004136/0.3796, allocations: 1.861 MB / 0.5736 GB, free: 6.859 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005166/0.3848, allocations: 1.627 MB / 0.5752 GB, free: 5.227 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001855/0.3866, allocations: 0.5731 MB / 0.5758 GB, free: 4.652 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006172/0.3928, allocations: 3.657 MB / 0.5793 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002733/0.3955, allocations: 1.995 MB / 0.5813 GB, free: 14.93 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001916/0.3974, allocations: 1.184 MB / 0.5824 GB, free: 13.75 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002916/0.4004, allocations: 1.779 MB / 0.5842 GB, free: 11.96 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006415/0.401, allocations: 240 kB / 0.5844 GB, free: 11.73 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00205/0.403, allocations: 1.03 MB / 0.5854 GB, free: 10.7 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001623/0.4047, allocations: 1.554 MB / 0.5869 GB, free: 9.137 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001792/0.4065, allocations: 1.32 MB / 0.5882 GB, free: 7.809 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00707/0.4135, allocations: 5.895 MB / 0.594 GB, free: 1.891 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.4135, allocations: 3.938 kB / 0.594 GB, free: 1.887 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.4135, allocations: 0 / 0.594 GB, free: 1.887 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001777/0.4137, allocations: 0 / 0.594 GB, free: 1.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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.01036/0.4241, allocations: 3.986 MB / 0.5979 GB, free: 13.84 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.4241, allocations: 12.03 kB / 0.5979 GB, free: 13.83 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009337/0.4251, allocations: 0.5714 MB / 0.5984 GB, free: 13.25 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08228/0.5073, allocations: 6.966 MB / 0.6052 GB, free: 6.273 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006804/0.5141, allocations: 2.404 MB / 0.6076 GB, free: 3.832 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001758/0.5143, allocations: 180.8 kB / 0.6078 GB, free: 3.652 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008265/0.5151, allocations: 239.8 kB / 0.608 GB, free: 3.418 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01361/0.5288, allocations: 7.778 MB / 0.6156 GB, free: 10.97 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001053/0.5289, allocations: 39.7 kB / 0.6156 GB, free: 10.93 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003269/0.5292, allocations: 123.9 kB / 0.6157 GB, free: 10.81 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002841/0.532, allocations: 1.582 MB / 0.6173 GB, free: 9.227 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01274/0.5448, allocations: 6.437 MB / 0.6236 GB, free: 2.781 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0419/0.5867, allocations: 30.16 MB / 0.653 GB, free: 3.645 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004861/0.5915, allocations: 1.889 MB / 0.6549 GB, free: 1.719 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001505/0.593, allocations: 0.9794 MB / 0.6558 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003061/0.5933, allocations: 83.94 kB / 0.6559 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.828e-05/0.5934, allocations: 46.5 kB / 0.6559 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 4.358e-06/0.5934, allocations: 0 / 0.6559 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02328/0.6167, allocations: 8.432 MB / 0.6642 GB, free: 8.105 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001614/0.6168, allocations: 204.5 kB / 0.6644 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006551/0.6234, allocations: 3.974 MB / 0.6683 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000304/0.6237, allocations: 45.64 kB / 0.6683 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002665/0.6264, allocations: 2.83 MB / 0.6711 GB, free: 0.9805 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007376/0.6271, allocations: 0.508 MB / 0.6716 GB, free: 480 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001563/0.6287, allocations: 1.088 MB / 0.6726 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001424/0.6288, allocations: 309.1 kB / 0.6729 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002547/0.6314, allocations: 1.58 MB / 0.6745 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005796/0.6372, allocations: 5.199 MB / 0.6795 GB, free: 6.465 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009433/0.6466, allocations: 7.318 MB / 0.6867 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000118/0.6467, allocations: 39.94 kB / 0.6867 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01338/0.6601, allocations: 6.637 MB / 0.6932 GB, free: 6.695 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.6602, allocations: 64.25 kB / 0.6933 GB, free: 6.633 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001795/0.6604, allocations: 132 kB / 0.6934 GB, free: 6.504 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/0.6614, allocations: 396.6 kB / 0.6938 GB, free: 6.113 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003969/0.6654, allocations: 1.22 MB / 0.695 GB, free: 4.891 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004116/0.6695, allocations: 3.205 MB / 0.6981 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003929/0.6734, allocations: 291.7 kB / 0.6984 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007544/0.6742, allocations: 344 kB / 0.6987 GB, free: 0.9492 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.002947/0.6771, allocations: 1.774 MB / 0.7004 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006768/0.6778, allocations: 325.8 kB / 0.7007 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002775/0.6806, allocations: 1.461 MB / 0.7022 GB, free: 13.37 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.699e-05/0.6806, allocations: 16 kB / 0.7022 GB, free: 13.35 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.6806, allocations: 3.938 kB / 0.7022 GB, free: 13.35 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.105e-05/0.6806, allocations: 7.984 kB / 0.7022 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00944/0.6901, allocations: 4.602 MB / 0.7067 GB, free: 8.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.138e-05/0.6901, allocations: 0 / 0.7067 GB, free: 8.68 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008084/0.6909, allocations: 159.7 kB / 0.7068 GB, free: 8.523 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007107/0.6916, allocations: 228.8 kB / 0.7071 GB, free: 8.297 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.777e-05/0.6917, allocations: 20 kB / 0.7071 GB, free: 8.277 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003268/0.6949, allocations: 2.584 MB / 0.7096 GB, free: 5.578 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.6949, allocations: 0 / 0.7096 GB, free: 5.578 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005121/0.7001, allocations: 3.304 MB / 0.7128 GB, free: 2.246 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001173/0.7012, allocations: 297.7 kB / 0.7131 GB, free: 1.953 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003577/0.7016, allocations: 16 kB / 0.7131 GB, free: 1.938 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.7026, allocations: 51.94 kB / 0.7132 GB, free: 1.887 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002071/0.7028, allocations: 64.33 kB / 0.7132 GB, free: 1.824 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.221e-05/0.7029, allocations: 35.98 kB / 0.7133 GB, free: 1.789 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004033/0.7069, allocations: 2.339 MB / 0.7156 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.5e-07/0.7069, allocations: 3.938 kB / 0.7156 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004491/0.7114, allocations: 0.7656 MB / 0.7163 GB, free: 14.7 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.005621/0.7171, allocations: 3.911 MB / 0.7201 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007772/0.7248, allocations: 3.68 MB / 0.7237 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.548e-06/0.7248, allocations: 0 / 0.7237 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001612/0.7265, allocations: 0.8951 MB / 0.7246 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002393/0.7288, allocations: 375.7 kB / 0.725 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3162/1.045, allocations: 37.26 MB / 0.7613 GB, free: 130.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002026/1.047, allocations: 2.166 MB / 0.7635 GB, free: 127.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003293/1.05, allocations: 1.702 MB / 0.7651 GB, free: 126.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001563/1.052, allocations: 1.452 MB / 0.7665 GB, free: 124.8 MB / 0.5606 GB Notification: Performance of SimCode: time 1.753e-06/1.052, allocations: 0 / 0.7665 GB, free: 124.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09904/1.151, allocations: 56.69 MB / 0.8219 GB, free: 68.89 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.47/16.62, allocations: 4.062 kB / 0.8219 GB, free: 68.88 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.110310193005716]