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.001745/0.001745, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.002066/0.002066, allocations: 218.9 kB / 21.46 MB, free: 1.586 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 / 254.8 MB, free: 15.22 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.2359/0.2359, allocations: 46.92 MB / 357.8 MB, free: 10.32 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002093/0.002093, allocations: 67.89 kB / 0.4916 GB, free: 7.949 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1365, allocations: 65.98 MB / 0.556 GB, free: 5.84 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01187/0.1484, allocations: 9.093 MB / 0.5649 GB, free: 12.7 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007787/0.1562, allocations: 3.602 MB / 0.5684 GB, free: 9.086 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001503/0.1577, allocations: 55.75 kB / 0.5685 GB, free: 9.031 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004418/0.1621, allocations: 1.935 MB / 0.5704 GB, free: 7.09 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004913/0.167, allocations: 1.603 MB / 0.572 GB, free: 5.48 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001684/0.1687, allocations: 0.5692 MB / 0.5725 GB, free: 4.91 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006045/0.1747, allocations: 3.658 MB / 0.5761 GB, free: 1.246 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003244/0.178, allocations: 2.074 MB / 0.5781 GB, free: 15.12 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002432/0.1804, allocations: 1.187 MB / 0.5793 GB, free: 13.93 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002971/0.1834, allocations: 1.776 MB / 0.581 GB, free: 12.14 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007453/0.1841, allocations: 240 kB / 0.5812 GB, free: 11.91 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002426/0.1865, allocations: 1.147 MB / 0.5823 GB, free: 10.76 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002003/0.1885, allocations: 1.55 MB / 0.5839 GB, free: 9.207 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002624/0.1912, allocations: 1.782 MB / 0.5856 GB, free: 7.414 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00788/0.199, allocations: 5.879 MB / 0.5913 GB, free: 1.512 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.1991, allocations: 0 / 0.5913 GB, free: 1.512 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1991, allocations: 0 / 0.5913 GB, free: 1.512 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001243/0.1992, allocations: 0 / 0.5913 GB, free: 1.512 MB / 446.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.2662/0.4654, allocations: 4.056 MB / 0.5953 GB, free: 33 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.4654, allocations: 9.062 kB / 0.5953 GB, free: 33 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001267/0.4655, allocations: 86.03 kB / 0.5954 GB, free: 33 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009756/0.4665, allocations: 0.5729 MB / 0.596 GB, free: 32.93 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08998/0.5565, allocations: 6.968 MB / 0.6028 GB, free: 32.63 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006048/0.5625, allocations: 2.464 MB / 0.6052 GB, free: 31.7 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001389/0.5627, allocations: 180.5 kB / 0.6053 GB, free: 31.64 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007942/0.5635, allocations: 246.4 kB / 0.6056 GB, free: 31.57 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0128/0.5763, allocations: 7.715 MB / 0.6131 GB, free: 27.06 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001228/0.5764, allocations: 47.69 kB / 0.6132 GB, free: 27.03 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003882/0.5768, allocations: 119.8 kB / 0.6133 GB, free: 26.96 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002593/0.5794, allocations: 1.58 MB / 0.6148 GB, free: 26.34 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01082/0.5902, allocations: 6.458 MB / 0.6211 GB, free: 22.07 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03246/0.6226, allocations: 31.36 MB / 0.6517 GB, free: 5.898 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005455/0.6281, allocations: 2.353 MB / 0.654 GB, free: 3.402 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001711/0.6298, allocations: 0.9876 MB / 0.655 GB, free: 2.406 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004429/0.6303, allocations: 327.1 kB / 0.6553 GB, free: 2.031 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.683e-05/0.6303, allocations: 42.56 kB / 0.6554 GB, free: 1.98 MB / 462.1 MB Notification: Performance of pre-optimization done (n=104): time 4.388e-06/0.6303, allocations: 0 / 0.6554 GB, free: 1.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=118): time 0.02511/0.6554, allocations: 8.547 MB / 0.6637 GB, free: 9.344 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001485/0.6556, allocations: 196.5 kB / 0.6639 GB, free: 9.109 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006162/0.6617, allocations: 3.766 MB / 0.6676 GB, free: 5.352 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002488/0.662, allocations: 41.7 kB / 0.6676 GB, free: 5.305 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002275/0.6642, allocations: 2.834 MB / 0.6704 GB, free: 2.441 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006119/0.6649, allocations: 0.5042 MB / 0.6709 GB, free: 1.934 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00144/0.6663, allocations: 1.095 MB / 0.6719 GB, free: 0.8281 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.6664, allocations: 305.1 kB / 0.6722 GB, free: 0.5273 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002741/0.6692, allocations: 1.583 MB / 0.6738 GB, free: 14.94 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006524/0.6757, allocations: 5.145 MB / 0.6788 GB, free: 7.992 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009881/0.6856, allocations: 7.32 MB / 0.6859 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001111/0.6857, allocations: 36 kB / 0.686 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01332/0.699, allocations: 6.647 MB / 0.6925 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.704e-05/0.6991, allocations: 60 kB / 0.6925 GB, free: 8.148 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001619/0.6993, allocations: 132.7 kB / 0.6927 GB, free: 8.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001004/0.7003, allocations: 401 kB / 0.693 GB, free: 7.625 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003884/0.7042, allocations: 1.22 MB / 0.6942 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004385/0.7086, allocations: 3.331 MB / 0.6975 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003976/0.7125, allocations: 283.7 kB / 0.6978 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008482/0.7134, allocations: 344 kB / 0.6981 GB, free: 2.32 MB / 0.4981 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.003303/0.7167, allocations: 1.78 MB / 0.6998 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006705/0.7173, allocations: 325.8 kB / 0.7001 GB, free: 212 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003007/0.7204, allocations: 1.462 MB / 0.7016 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.663e-05/0.7204, allocations: 16 kB / 0.7016 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.389e-05/0.7204, allocations: 7.938 kB / 0.7016 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.7204, allocations: 3.984 kB / 0.7016 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009515/0.7299, allocations: 4.831 MB / 0.7063 GB, free: 9.812 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/0.7299, allocations: 0.8125 kB / 0.7063 GB, free: 9.812 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008288/0.7308, allocations: 155.8 kB / 0.7065 GB, free: 9.66 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007514/0.7315, allocations: 236.5 kB / 0.7067 GB, free: 9.426 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.693e-05/0.7316, allocations: 20.38 kB / 0.7067 GB, free: 9.406 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003598/0.7352, allocations: 2.707 MB / 0.7093 GB, free: 6.559 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.7352, allocations: 0 / 0.7093 GB, free: 6.559 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005243/0.7404, allocations: 3.296 MB / 0.7126 GB, free: 3.246 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009559/0.7414, allocations: 378.9 kB / 0.7129 GB, free: 2.855 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003966/0.7418, allocations: 20 kB / 0.7129 GB, free: 2.836 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001047/0.7428, allocations: 47.94 kB / 0.713 GB, free: 2.789 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000219/0.7431, allocations: 64.42 kB / 0.713 GB, free: 2.727 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.915e-05/0.7432, allocations: 31.98 kB / 0.7131 GB, free: 2.695 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004482/0.7476, allocations: 2.343 MB / 0.7154 GB, free: 376 kB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7476, allocations: 0 / 0.7154 GB, free: 376 kB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004785/0.7524, allocations: 0.7656 MB / 0.7161 GB, free: 15.6 MB / 0.5294 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.00593/0.7583, allocations: 3.919 MB / 0.7199 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006691/0.765, allocations: 3.679 MB / 0.7235 GB, free: 7.977 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/0.765, allocations: 4 kB / 0.7235 GB, free: 7.973 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001605/0.7667, allocations: 0.8919 MB / 0.7244 GB, free: 7.066 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002468/0.7691, allocations: 378.3 kB / 0.7248 GB, free: 6.699 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06194/0.8311, allocations: 37.2 MB / 0.7611 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003671/0.8347, allocations: 2.712 MB / 0.7637 GB, free: 9.383 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004151/0.8389, allocations: 1.712 MB / 0.7654 GB, free: 7.668 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002419/0.8413, allocations: 1.456 MB / 0.7668 GB, free: 6.211 MB / 0.5762 GB Notification: Performance of SimCode: time 1.032e-06/0.8413, allocations: 4 kB / 0.7668 GB, free: 6.207 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1123/0.9536, allocations: 54.57 MB / 0.8201 GB, free: 15.94 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.45/26.41, allocations: 10.41 kB / 0.8201 GB, free: 15.93 MB / 0.6387 GB " [Timeout remaining time 633] (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: 30.590458669001237]