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.001458/0.001458, allocations: 111.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.001634/0.001634, allocations: 214.6 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.496/1.496, allocations: 230.6 MB / 257.5 MB, free: 8 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.2311/0.2311, allocations: 46.96 MB / 360.9 MB, free: 4.078 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: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003041/0.003041, allocations: 59.91 kB / 0.4966 GB, free: 7.25 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3508/0.3539, allocations: 66.04 MB / 0.5611 GB, free: 4.199 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01087/0.3647, allocations: 8.026 MB / 0.5689 GB, free: 12.13 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00674/0.3715, allocations: 3.388 MB / 0.5722 GB, free: 8.734 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007989/0.3723, allocations: 55.75 kB / 0.5723 GB, free: 8.68 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003653/0.3759, allocations: 1.861 MB / 0.5741 GB, free: 6.812 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003604/0.3795, allocations: 1.627 MB / 0.5757 GB, free: 5.18 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001201/0.3807, allocations: 0.5691 MB / 0.5762 GB, free: 4.609 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004688/0.3854, allocations: 3.666 MB / 0.5798 GB, free: 0.9375 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002454/0.3879, allocations: 1.985 MB / 0.5817 GB, free: 14.89 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001618/0.3895, allocations: 1.187 MB / 0.5829 GB, free: 13.7 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002363/0.3919, allocations: 1.69 MB / 0.5846 GB, free: 12.01 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004883/0.3924, allocations: 240 kB / 0.5848 GB, free: 11.77 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001875/0.3942, allocations: 1.022 MB / 0.5858 GB, free: 10.75 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001521/0.3957, allocations: 1.535 MB / 0.5873 GB, free: 9.211 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001417/0.3972, allocations: 1.258 MB / 0.5885 GB, free: 7.945 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006527/0.4037, allocations: 5.735 MB / 0.5941 GB, free: 2.188 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.4037, allocations: 0 / 0.5941 GB, free: 2.188 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.4037, allocations: 0 / 0.5941 GB, free: 2.188 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001025/0.4038, allocations: 0 / 0.5941 GB, free: 2.188 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.007307/0.4111, allocations: 3.853 MB / 0.5979 GB, free: 14.28 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.4112, allocations: 12.03 kB / 0.5979 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01652/0.4277, allocations: 2.374 MB / 0.6002 GB, free: 11.89 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005929/0.4336, allocations: 2.193 MB / 0.6023 GB, free: 9.66 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000175/0.4338, allocations: 180.8 kB / 0.6025 GB, free: 9.48 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008049/0.4346, allocations: 243.9 kB / 0.6027 GB, free: 9.242 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01307/0.4477, allocations: 7.837 MB / 0.6104 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001001/0.4478, allocations: 39.69 kB / 0.6104 GB, free: 0.7031 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003266/0.4481, allocations: 111.9 kB / 0.6105 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002803/0.4509, allocations: 1.59 MB / 0.6121 GB, free: 15 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01305/0.4639, allocations: 6.562 MB / 0.6185 GB, free: 8.426 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04082/0.5048, allocations: 29.77 MB / 0.6476 GB, free: 9.695 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005041/0.5098, allocations: 1.959 MB / 0.6495 GB, free: 7.699 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00164/0.5114, allocations: 1.038 MB / 0.6505 GB, free: 6.648 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002707/0.5117, allocations: 99.89 kB / 0.6506 GB, free: 6.551 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.424e-05/0.5118, allocations: 46.5 kB / 0.6506 GB, free: 6.496 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 4.368e-06/0.5118, allocations: 0 / 0.6506 GB, free: 6.496 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02436/0.5361, allocations: 9.176 MB / 0.6596 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/0.5363, allocations: 192.4 kB / 0.6598 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005068/0.5413, allocations: 3.518 MB / 0.6632 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002093/0.5415, allocations: 41.7 kB / 0.6633 GB, free: 9.457 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002473/0.544, allocations: 2.839 MB / 0.666 GB, free: 6.59 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006814/0.5447, allocations: 0.512 MB / 0.6665 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001593/0.5463, allocations: 1.139 MB / 0.6676 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001531/0.5464, allocations: 305.1 kB / 0.6679 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002761/0.5492, allocations: 1.693 MB / 0.6696 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006143/0.5554, allocations: 5.31 MB / 0.6748 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00994/0.5653, allocations: 7.511 MB / 0.6821 GB, free: 2.52 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001298/0.5654, allocations: 36 kB / 0.6821 GB, free: 2.484 MB / 0.5137 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.0147/0.5801, allocations: 7.089 MB / 0.6891 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001817/0.5803, allocations: 60 kB / 0.6891 GB, free: 11.33 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002578/0.5806, allocations: 131.9 kB / 0.6893 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00187/0.5824, allocations: 0.6532 MB / 0.6899 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004247/0.5867, allocations: 1.251 MB / 0.6911 GB, free: 9.289 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006161/0.5928, allocations: 3.913 MB / 0.6949 GB, free: 5.277 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003825/0.5967, allocations: 295.7 kB / 0.6952 GB, free: 4.988 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008866/0.5976, allocations: 352 kB / 0.6956 GB, free: 4.645 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 (682): * Single equations (assignments): 678 * 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003826/0.6014, allocations: 1.775 MB / 0.6973 GB, free: 2.855 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007876/0.6022, allocations: 286.1 kB / 0.6976 GB, free: 2.574 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004046/0.6062, allocations: 1.8 MB / 0.6993 GB, free: 0.75 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.941e-05/0.6062, allocations: 12 kB / 0.6993 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.6063, allocations: 4.375 kB / 0.6993 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.587e-05/0.6063, allocations: 7.984 kB / 0.6993 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01095/0.6172, allocations: 4.448 MB / 0.7037 GB, free: 12.21 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-05/0.6172, allocations: 4 kB / 0.7037 GB, free: 12.21 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008392/0.6181, allocations: 159.7 kB / 0.7038 GB, free: 12.05 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00145/0.6195, allocations: 488.3 kB / 0.7043 GB, free: 11.57 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001222/0.6196, allocations: 20 kB / 0.7043 GB, free: 11.55 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004551/0.6242, allocations: 3.279 MB / 0.7075 GB, free: 8.176 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.6242, allocations: 0 / 0.7075 GB, free: 8.176 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006113/0.6303, allocations: 3.716 MB / 0.7112 GB, free: 4.434 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008051/0.6311, allocations: 250 kB / 0.7114 GB, free: 4.188 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005248/0.6316, allocations: 23.94 kB / 0.7114 GB, free: 4.164 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001194/0.6328, allocations: 59.92 kB / 0.7115 GB, free: 4.105 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001939/0.633, allocations: 64.31 kB / 0.7115 GB, free: 4.043 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.279e-05/0.6331, allocations: 32.28 kB / 0.7116 GB, free: 4.012 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003773/0.6369, allocations: 2.015 MB / 0.7135 GB, free: 2 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/0.6369, allocations: 0 / 0.7135 GB, free: 2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004372/0.6413, allocations: 0.7928 MB / 0.7143 GB, free: 1.207 MB / 0.545 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.0004575/0.6417, allocations: 147.6 kB / 0.7145 GB, free: 1.051 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006932/0.6487, allocations: 3.869 MB / 0.7182 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.6487, allocations: 0 / 0.7182 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001576/0.6502, allocations: 0.9383 MB / 0.7191 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002244/0.6525, allocations: 321.5 kB / 0.7195 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01419/0.6667, allocations: 7.244 MB / 0.7265 GB, free: 4.652 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004525/0.6712, allocations: 2.16 MB / 0.7286 GB, free: 2.453 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004413/0.6756, allocations: 1.662 MB / 0.7303 GB, free: 0.7852 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007559/0.6764, allocations: 191.4 kB / 0.7304 GB, free: 0.6016 MB / 0.5606 GB Notification: Performance of SimCode: time 8.92e-07/0.6764, allocations: 3.938 kB / 0.7304 GB, free: 0.5977 MB / 0.5606 GB Notification: Performance of Templates: time 0.3052/0.9816, allocations: 25.78 MB / 0.7556 GB, free: 139.2 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (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 & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/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: 6.852991487830877]