Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.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.001668/0.001668, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001704/0.001704, allocations: 165 kB / 24.56 MB, free: 12 kB / 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 1.013/1.013, allocations: 177.1 MB / 205 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3201/0.3201, allocations: 32.8 MB / 294.3 MB, free: 1.285 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar") translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 376 MB, free: 4.676 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.703e-05/1.871e-05, allocations: 2.312 kB / 376 MB, free: 4.672 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.0118/0.01182, allocations: 14.41 MB / 390.4 MB, free: 6.195 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.008223/0.02004, allocations: 4.341 MB / 394.8 MB, free: 1.84 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001449/0.02149, allocations: 95.62 kB / 394.9 MB, free: 1.746 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002582/0.02407, allocations: 2.382 MB / 397.2 MB, free: 15.36 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003693/0.02776, allocations: 2.135 MB / 399.4 MB, free: 13.21 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009961/0.02876, allocations: 0.6703 MB / 400.1 MB, free: 12.54 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004146/0.03291, allocations: 4.705 MB / 404.8 MB, free: 7.828 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003266/0.03617, allocations: 3.02 MB / 407.8 MB, free: 4.754 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002569/0.03874, allocations: 2.569 MB / 410.3 MB, free: 2.18 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002237/0.04098, allocations: 2.303 MB / 412.7 MB, free: 15.87 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003791/0.04136, allocations: 332 kB / 413 MB, free: 15.55 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001275/0.04263, allocations: 0.9946 MB / 414 MB, free: 14.55 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001159/0.04379, allocations: 2.076 MB / 416 MB, free: 12.47 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009739/0.04476, allocations: 1.289 MB / 417.3 MB, free: 11.18 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003961/0.04873, allocations: 4.887 MB / 422.2 MB, free: 6.27 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.04873, allocations: 4 kB / 422.2 MB, free: 6.266 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.04873, allocations: 0 / 422.2 MB, free: 6.266 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.308e-05/0.04877, allocations: 0 / 422.2 MB, free: 6.266 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.005311/0.05409, allocations: 5.543 MB / 427.8 MB, free: 0.6523 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.05413, allocations: 12.03 kB / 427.8 MB, free: 0.6406 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006077/0.06021, allocations: 3.819 MB / 431.6 MB, free: 12.81 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002202/0.06241, allocations: 2.185 MB / 433.8 MB, free: 10.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003274/0.06274, allocations: 246.6 kB / 434 MB, free: 10.35 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000369/0.0631, allocations: 332.1 kB / 434.3 MB, free: 10.03 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007036/0.07014, allocations: 6.349 MB / 440.7 MB, free: 2.965 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.975e-05/0.07021, allocations: 39.7 kB / 440.7 MB, free: 2.926 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002775/0.07049, allocations: 151.8 kB / 440.9 MB, free: 2.777 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2074/0.2779, allocations: 2.788 MB / 443.7 MB, free: 90.18 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01036/0.2882, allocations: 3.673 MB / 447.3 MB, free: 90.11 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02769/0.3159, allocations: 40.94 MB / 488.3 MB, free: 61.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00344/0.3194, allocations: 1.691 MB / 490 MB, free: 61.38 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006915/0.3201, allocations: 0.5392 MB / 490.5 MB, free: 61.28 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006104/0.3262, allocations: 4.469 MB / 495 MB, free: 59.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.3262, allocations: 48.3 kB / 495 MB, free: 59.56 MB / 410.7 MB Notification: Performance of pre-optimization done (n=185): time 3.426e-06/0.3262, allocations: 0 / 495 MB, free: 59.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=198): time 0.01341/0.3396, allocations: 7.295 MB / 0.4906 GB, free: 57.43 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.364e-05/0.3397, allocations: 68.38 kB / 0.4906 GB, free: 57.36 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002914/0.3426, allocations: 3.145 MB / 0.4937 GB, free: 56 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.52e-05/0.3426, allocations: 58.06 kB / 0.4937 GB, free: 55.94 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001421/0.3441, allocations: 3.598 MB / 0.4973 GB, free: 53.18 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004449/0.3445, allocations: 0.8141 MB / 0.4981 GB, free: 52.58 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001055/0.3456, allocations: 1.277 MB / 0.4993 GB, free: 51.89 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.736e-05/0.3456, allocations: 481.3 kB / 0.4998 GB, free: 51.43 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001136/0.3467, allocations: 0.6397 MB / 0.5004 GB, free: 51.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002652/0.3494, allocations: 5.811 MB / 0.5061 GB, free: 44.28 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004599/0.354, allocations: 7.128 MB / 0.513 GB, free: 36.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-05/0.354, allocations: 31.66 kB / 0.5131 GB, free: 36.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=786) (initialization): time 0.005895/0.3599, allocations: 5.02 MB / 0.518 GB, free: 32.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.913e-05/0.36, allocations: 56 kB / 0.518 GB, free: 31.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-05/0.3601, allocations: 124.9 kB / 0.5181 GB, free: 31.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003343/0.3604, allocations: 220.1 kB / 0.5183 GB, free: 31.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002227/0.3626, allocations: 1.357 MB / 0.5197 GB, free: 30.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001298/0.3628, allocations: 241 kB / 0.5199 GB, free: 30.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001996/0.3648, allocations: 356.5 kB / 0.5202 GB, free: 29.97 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002723/0.365, allocations: 355.1 kB / 0.5206 GB, free: 29.62 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 560 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,axis2.arrowLine.twoHeadedArrow,axis2.headAtOrigin,axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (736): * Single equations (assignments): 728 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001265/0.3663, allocations: 0.6425 MB / 0.5212 GB, free: 28.98 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003137/0.3666, allocations: 353.9 kB / 0.5215 GB, free: 28.63 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001755/0.3684, allocations: 1.289 MB / 0.5228 GB, free: 27.52 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-05/0.3684, allocations: 24 kB / 0.5228 GB, free: 27.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.3684, allocations: 1.688 kB / 0.5228 GB, free: 27.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.792e-05/0.3684, allocations: 5.672 kB / 0.5228 GB, free: 27.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006666/0.3751, allocations: 5.906 MB / 0.5286 GB, free: 22.17 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.236e-06/0.3751, allocations: 12 kB / 0.5286 GB, free: 22.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006162/0.3757, allocations: 303.1 kB / 0.5289 GB, free: 21.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001536/0.3759, allocations: 69.86 kB / 0.529 GB, free: 21.85 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.82e-05/0.3759, allocations: 42.2 kB / 0.529 GB, free: 21.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.085e-05/0.3759, allocations: 22.75 kB / 0.529 GB, free: 21.79 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/0.3759, allocations: 20.19 kB / 0.529 GB, free: 21.77 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001868/0.3778, allocations: 2.173 MB / 0.5312 GB, free: 19.53 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002265/0.378, allocations: 287.3 kB / 0.5314 GB, free: 19.26 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001899/0.3782, allocations: 42.36 kB / 0.5315 GB, free: 19.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005276/0.3788, allocations: 114.5 kB / 0.5316 GB, free: 19.15 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/0.3789, allocations: 124.3 kB / 0.5317 GB, free: 19.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.036e-05/0.379, allocations: 73.39 kB / 0.5318 GB, free: 19.01 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001158/0.3801, allocations: 1.312 MB / 0.5331 GB, free: 17.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3801, allocations: 0 / 0.5331 GB, free: 17.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002422/0.3825, allocations: 0.9904 MB / 0.534 GB, free: 16.94 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * 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 (152): * Single equations (assignments): 144 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003242/0.3829, allocations: 200.4 kB / 0.5342 GB, free: 16.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002759/0.3856, allocations: 2.755 MB / 0.5369 GB, free: 14.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.3856, allocations: 0 / 0.5369 GB, free: 14.32 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006351/0.3863, allocations: 0.6458 MB / 0.5375 GB, free: 13.75 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/0.3873, allocations: 352.8 kB / 0.5379 GB, free: 13.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009033/0.3963, allocations: 8.69 MB / 0.5464 GB, free: 5.195 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009626/0.3973, allocations: 1.412 MB / 0.5477 GB, free: 3.957 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002078/0.3994, allocations: 1.635 MB / 0.5493 GB, free: 2.316 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004234/0.3998, allocations: 232.4 kB / 0.5496 GB, free: 2.086 MB / 410.7 MB Notification: Performance of SimCode: time 2.274e-06/0.3998, allocations: 0 / 0.5496 GB, free: 2.086 MB / 410.7 MB Notification: Performance of Templates: time 0.0383/0.4381, allocations: 24.49 MB / 0.5735 GB, free: 10.13 MB / 442.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.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.090115214232355]