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.002001/0.002001, allocations: 71.12 kB / 21.24 MB, free: 0.5469 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.002767/0.002767, allocations: 158.9 kB / 24.5 MB, free: 3.719 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.627/1.627, allocations: 177.2 MB / 204.9 MB, free: 9.043 MB / 190.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.2248/0.2248, allocations: 34.28 MB / 295.5 MB, free: 14.59 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.002104/0.002104, allocations: 71.89 kB / 443.2 MB, free: 6.691 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.3247, allocations: 66.01 MB / 0.4972 GB, free: 29.8 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.007276/0.332, allocations: 8.026 MB / 0.5051 GB, free: 24.57 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.005973/0.338, allocations: 3.38 MB / 0.5084 GB, free: 22.46 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001118/0.3391, allocations: 56.16 kB / 0.5084 GB, free: 22.44 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003022/0.3421, allocations: 1.874 MB / 0.5103 GB, free: 21.65 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003523/0.3456, allocations: 1.623 MB / 0.5118 GB, free: 20.93 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001281/0.3469, allocations: 0.5671 MB / 0.5124 GB, free: 20.7 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00609/0.353, allocations: 3.659 MB / 0.516 GB, free: 19.32 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0031/0.3561, allocations: 1.992 MB / 0.5179 GB, free: 18.38 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002677/0.3588, allocations: 1.19 MB / 0.5191 GB, free: 17.88 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00314/0.3619, allocations: 1.687 MB / 0.5207 GB, free: 17.32 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006567/0.3626, allocations: 241 kB / 0.5209 GB, free: 17.32 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00229/0.3649, allocations: 1.015 MB / 0.5219 GB, free: 17.12 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002237/0.3671, allocations: 1.539 MB / 0.5234 GB, free: 16.55 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002843/0.37, allocations: 1.26 MB / 0.5247 GB, free: 15.78 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008799/0.3788, allocations: 5.727 MB / 0.5303 GB, free: 13.62 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3788, allocations: 0 / 0.5303 GB, free: 13.62 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3788, allocations: 0 / 0.5303 GB, free: 13.62 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001683/0.3789, allocations: 1.219 kB / 0.5303 GB, free: 13.62 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.008332/0.3873, allocations: 3.859 MB / 0.534 GB, free: 10.89 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.3873, allocations: 13.62 kB / 0.534 GB, free: 10.89 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01606/0.4034, allocations: 2.419 MB / 0.5364 GB, free: 9.746 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005959/0.4093, allocations: 2.196 MB / 0.5386 GB, free: 8.391 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001554/0.4095, allocations: 172.1 kB / 0.5387 GB, free: 8.309 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006733/0.4101, allocations: 237.9 kB / 0.5389 GB, free: 8.223 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01088/0.421, allocations: 7.844 MB / 0.5466 GB, free: 2.32 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-05/0.4211, allocations: 35.69 kB / 0.5466 GB, free: 2.285 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000289/0.4214, allocations: 115.9 kB / 0.5468 GB, free: 2.172 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002088/0.4235, allocations: 1.586 MB / 0.5483 GB, free: 0.582 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01293/0.4364, allocations: 6.57 MB / 0.5547 GB, free: 10 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04092/0.4773, allocations: 29.86 MB / 0.5839 GB, free: 11.18 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004978/0.4823, allocations: 1.999 MB / 0.5858 GB, free: 9.141 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001539/0.4838, allocations: 1.042 MB / 0.5868 GB, free: 8.086 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002635/0.4841, allocations: 91.73 kB / 0.5869 GB, free: 7.996 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.096e-05/0.4841, allocations: 50.5 kB / 0.587 GB, free: 7.938 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.837e-06/0.4842, allocations: 4 kB / 0.587 GB, free: 7.934 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02492/0.5091, allocations: 9.414 MB / 0.5962 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001339/0.5092, allocations: 188.4 kB / 0.5964 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005333/0.5145, allocations: 3.522 MB / 0.5998 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002198/0.5148, allocations: 49.69 kB / 0.5998 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002366/0.5171, allocations: 2.835 MB / 0.6026 GB, free: 7.797 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006343/0.5178, allocations: 0.5041 MB / 0.6031 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00161/0.5194, allocations: 1.139 MB / 0.6042 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.5195, allocations: 305.1 kB / 0.6045 GB, free: 5.84 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002796/0.5223, allocations: 1.689 MB / 0.6062 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005924/0.5282, allocations: 5.313 MB / 0.6114 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009877/0.5381, allocations: 7.516 MB / 0.6187 GB, free: 3.727 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001021/0.5382, allocations: 36 kB / 0.6187 GB, free: 3.691 MB / 0.5137 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.0133/0.5515, allocations: 7.082 MB / 0.6256 GB, free: 12.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.953e-05/0.5516, allocations: 64.88 kB / 0.6257 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001351/0.5517, allocations: 128 kB / 0.6258 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001663/0.5534, allocations: 0.668 MB / 0.6265 GB, free: 11.74 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003872/0.5573, allocations: 1.244 MB / 0.6277 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005256/0.5625, allocations: 3.925 MB / 0.6315 GB, free: 6.473 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003757/0.5663, allocations: 303.7 kB / 0.6318 GB, free: 6.176 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000797/0.5671, allocations: 344 kB / 0.6321 GB, free: 5.84 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.003393/0.5705, allocations: 1.775 MB / 0.6339 GB, free: 4.051 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006091/0.5711, allocations: 286 kB / 0.6341 GB, free: 3.77 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003703/0.5748, allocations: 1.804 MB / 0.6359 GB, free: 1.941 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-05/0.5748, allocations: 12 kB / 0.6359 GB, free: 1.93 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.958e-06/0.5748, allocations: 4 kB / 0.6359 GB, free: 1.926 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/0.5748, allocations: 3.984 kB / 0.6359 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01002/0.5848, allocations: 4.471 MB / 0.6403 GB, free: 13.38 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.52e-05/0.5849, allocations: 0 / 0.6403 GB, free: 13.38 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009226/0.5858, allocations: 163.8 kB / 0.6405 GB, free: 13.22 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001515/0.5873, allocations: 480.2 kB / 0.6409 GB, free: 12.75 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001335/0.5874, allocations: 20 kB / 0.6409 GB, free: 12.73 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005243/0.5927, allocations: 3.287 MB / 0.6441 GB, free: 9.344 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.5927, allocations: 0 / 0.6441 GB, free: 9.344 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007011/0.5997, allocations: 3.716 MB / 0.6478 GB, free: 5.602 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009541/0.6006, allocations: 254 kB / 0.648 GB, free: 5.352 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002981/0.6009, allocations: 16 kB / 0.648 GB, free: 5.336 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.602, allocations: 67.77 kB / 0.6481 GB, free: 5.273 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000216/0.6022, allocations: 68.31 kB / 0.6482 GB, free: 5.207 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.6023, allocations: 35.98 kB / 0.6482 GB, free: 5.172 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003705/0.606, allocations: 2.011 MB / 0.6502 GB, free: 3.164 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.01e-07/0.606, allocations: 0 / 0.6502 GB, free: 3.164 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005038/0.611, allocations: 0.7968 MB / 0.6509 GB, free: 2.367 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.0004138/0.6114, allocations: 139.6 kB / 0.6511 GB, free: 2.219 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006988/0.6184, allocations: 3.872 MB / 0.6548 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.349e-06/0.6184, allocations: 0 / 0.6548 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001502/0.6199, allocations: 0.9391 MB / 0.6558 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002001/0.6219, allocations: 310.1 kB / 0.6561 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01284/0.6348, allocations: 7.236 MB / 0.6631 GB, free: 5.836 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003075/0.6379, allocations: 2.161 MB / 0.6652 GB, free: 3.641 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003813/0.6417, allocations: 1.662 MB / 0.6669 GB, free: 1.973 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005353/0.6422, allocations: 192.5 kB / 0.667 GB, free: 1.785 MB / 0.5606 GB Notification: Performance of SimCode: time 8.71e-07/0.6422, allocations: 0 / 0.667 GB, free: 1.785 MB / 0.5606 GB Notification: Performance of Templates: time 0.05335/0.6956, allocations: 22.34 MB / 0.6889 GB, free: 11.8 MB / 0.5919 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 -s ida -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/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: 6.988899438059889]