Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.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.001244/0.001244, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001391/0.001391, allocations: 171.3 kB / 25.61 MB, free: 8.582 MB / 18.57 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 0.9367/0.9367, allocations: 177.1 MB / 206 MB, free: 4.477 MB / 186.7 MB " [Timeout remaining time 179] 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.1603/0.1603, allocations: 34.25 MB / 296.8 MB, free: 13.93 MB / 282.7 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.AbsoluteSensor2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|freeMotion.r.[0-9,]+.",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2") translateModel(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|freeMotion.r.[0-9,]+.",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 379.3 MB, free: 23.43 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.279e-05/2.43e-05, allocations: 2.312 kB / 379.3 MB, free: 23.42 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.007633/0.007657, allocations: 11.18 MB / 390.5 MB, free: 12.19 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006413/0.01407, allocations: 3.986 MB / 394.4 MB, free: 8.191 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001806/0.01588, allocations: 91.69 kB / 394.5 MB, free: 8.102 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00211/0.01799, allocations: 1.744 MB / 396.3 MB, free: 6.352 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002856/0.02084, allocations: 1.614 MB / 397.9 MB, free: 4.73 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001297/0.02214, allocations: 1.262 MB / 399.1 MB, free: 3.465 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003174/0.02531, allocations: 3.578 MB / 402.7 MB, free: 15.88 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002508/0.02782, allocations: 2.059 MB / 404.8 MB, free: 13.77 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002233/0.03006, allocations: 1.726 MB / 406.5 MB, free: 12.04 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002222/0.03228, allocations: 1.656 MB / 408.2 MB, free: 10.38 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004594/0.03274, allocations: 236 kB / 408.4 MB, free: 10.14 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001345/0.03408, allocations: 0.6787 MB / 409.1 MB, free: 9.465 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001103/0.03518, allocations: 1.648 MB / 410.7 MB, free: 7.812 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009937/0.03618, allocations: 0.9535 MB / 411.7 MB, free: 6.855 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003721/0.0399, allocations: 3.816 MB / 415.5 MB, free: 3.023 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.0399, allocations: 0 / 415.5 MB, free: 3.023 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.03991, allocations: 0 / 415.5 MB, free: 3.023 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001005/0.04001, allocations: 0 / 415.5 MB, free: 3.023 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1539 * Number of variables: 1539 Notification: Performance of Generate backend data structure: time 0.005048/0.04505, allocations: 4.374 MB / 419.9 MB, free: 14.58 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.0451, allocations: 8.031 kB / 419.9 MB, free: 14.57 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004215/0.04931, allocations: 1.707 MB / 421.6 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002295/0.05161, allocations: 1.542 MB / 423.1 MB, free: 11.29 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004001/0.05201, allocations: 189.1 kB / 423.3 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000409/0.05241, allocations: 248.2 kB / 423.6 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006551/0.05897, allocations: 5.178 MB / 428.7 MB, free: 4.801 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.767e-05/0.05902, allocations: 31.69 kB / 428.8 MB, free: 4.77 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002862/0.05931, allocations: 127.8 kB / 428.9 MB, free: 4.645 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002121/0.06143, allocations: 2.017 MB / 430.9 MB, free: 2.625 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004923/0.06635, allocations: 2.425 MB / 433.3 MB, free: 196 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03296/0.09931, allocations: 40.51 MB / 473.8 MB, free: 6.312 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002552/0.1019, allocations: 1.216 MB / 475.1 MB, free: 5.027 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005014/0.1024, allocations: 364.8 kB / 475.4 MB, free: 4.641 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004748/0.1071, allocations: 3.913 MB / 479.3 MB, free: 0.6914 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.527e-05/0.1071, allocations: 53.98 kB / 479.4 MB, free: 0.6289 MB / 394.7 MB Notification: Performance of pre-optimization done (n=150): time 7.244e-06/0.1072, allocations: 0 / 479.4 MB, free: 0.6289 MB / 394.7 MB Notification: Performance of matching and sorting (n=150): time 0.003425/0.1106, allocations: 1.613 MB / 481 MB, free: 15.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.439e-05/0.1106, allocations: 174.8 kB / 481.2 MB, free: 14.81 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003668/0.1143, allocations: 3.485 MB / 484.6 MB, free: 11.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001048/0.1144, allocations: 41.7 kB / 484.7 MB, free: 11.26 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002453/0.1169, allocations: 3.515 MB / 488.2 MB, free: 7.707 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005452/0.1174, allocations: 0.6594 MB / 488.9 MB, free: 7.043 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001243/0.1187, allocations: 1.446 MB / 490.3 MB, free: 5.582 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.1188, allocations: 0.5354 MB / 490.8 MB, free: 5.039 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006717/0.1195, allocations: 496.4 kB / 491.3 MB, free: 4.551 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1551/0.2746, allocations: 6.691 MB / 498 MB, free: 103 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005303/0.2799, allocations: 8.04 MB / 0.4942 GB, free: 94.68 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002097/0.2801, allocations: 42.81 kB / 0.4942 GB, free: 94.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=849) (initialization): time 0.008507/0.2886, allocations: 5.043 MB / 0.4992 GB, free: 93.57 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.611e-05/0.2887, allocations: 71.47 kB / 0.4992 GB, free: 93.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001838/0.2889, allocations: 147.3 kB / 0.4994 GB, free: 93.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001658/0.289, allocations: 195.5 kB / 0.4996 GB, free: 93.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003037/0.2921, allocations: 1.414 MB / 0.5009 GB, free: 93.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001957/0.2923, allocations: 289.8 kB / 0.5012 GB, free: 93.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003107/0.2954, allocations: 0.8533 MB / 0.502 GB, free: 93.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004313/0.2958, allocations: 346 kB / 0.5024 GB, free: 93.37 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 673 * Number of states: 0 () * Number of discrete variables: 23 (freeMotion.arrow.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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 (791): * Single equations (assignments): 783 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001284/0.2971, allocations: 0.687 MB / 0.503 GB, free: 93.07 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004147/0.2975, allocations: 328.9 kB / 0.5034 GB, free: 92.92 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003714/0.2979, allocations: 323.4 kB / 0.5037 GB, free: 92.84 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.454e-05/0.2979, allocations: 34.22 kB / 0.5037 GB, free: 92.81 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/0.2979, allocations: 4 kB / 0.5037 GB, free: 92.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.2979, allocations: 13.03 kB / 0.5037 GB, free: 92.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005283/0.3032, allocations: 3.92 MB / 0.5075 GB, free: 90.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.146e-06/0.3032, allocations: 10.88 kB / 0.5076 GB, free: 90.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005538/0.3038, allocations: 162.5 kB / 0.5077 GB, free: 90.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.138e-05/0.3038, allocations: 12 kB / 0.5077 GB, free: 90.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.593e-05/0.3038, allocations: 28 kB / 0.5077 GB, free: 90.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.456e-06/0.3039, allocations: 15.5 kB / 0.5078 GB, free: 90.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.3039, allocations: 7.938 kB / 0.5078 GB, free: 90.29 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001192/0.305, allocations: 1.664 MB / 0.5094 GB, free: 88.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002834/0.3053, allocations: 272.1 kB / 0.5097 GB, free: 88.46 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002168/0.3055, allocations: 31.88 kB / 0.5097 GB, free: 88.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006174/0.3062, allocations: 18.69 kB / 0.5097 GB, free: 88.44 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.3063, allocations: 85.92 kB / 0.5098 GB, free: 88.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.125e-05/0.3064, allocations: 39 kB / 0.5098 GB, free: 88.37 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00116/0.3075, allocations: 1.299 MB / 0.5111 GB, free: 87.58 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3075, allocations: 0 / 0.5111 GB, free: 87.58 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003761/0.3113, allocations: 1.103 MB / 0.5122 GB, free: 86.69 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 102 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002546/0.3115, allocations: 155.9 kB / 0.5123 GB, free: 86.56 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003261/0.3148, allocations: 2.583 MB / 0.5148 GB, free: 84.39 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.3148, allocations: 0 / 0.5148 GB, free: 84.39 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004375/0.3152, allocations: 370.7 kB / 0.5152 GB, free: 84.07 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001303/0.3166, allocations: 298.8 kB / 0.5155 GB, free: 83.81 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007928/0.3245, allocations: 6.751 MB / 0.5221 GB, free: 77.48 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001096/0.3256, allocations: 1.178 MB / 0.5232 GB, free: 76.62 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001576/0.3272, allocations: 0.4929 MB / 0.5237 GB, free: 76.21 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006158/0.3278, allocations: 486.1 kB / 0.5242 GB, free: 75.73 MB / 410.7 MB Notification: Performance of SimCode: time 1.673e-06/0.3278, allocations: 0 / 0.5242 GB, free: 75.73 MB / 410.7 MB Notification: Performance of Templates: time 0.03505/0.3628, allocations: 19.82 MB / 0.5435 GB, free: 56.43 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/AbsoluteSensor2/AbsoluteSensor2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.251642484217882]