Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.0009524/0.0009524, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001072/0.002024, allocations: 445.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007285/0.0007285, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008725/0.001601, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9211/0.9211, allocations: 158.6 MB / 171.1 MB, free: 2.578 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1823/1.103, allocations: 49.49 MB / 220.6 MB, free: 1.453 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 221.8 MB, free: 188 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.534e-05/2.687e-05, allocations: 6.312 kB / 221.8 MB, free: 180 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01972/0.01974, allocations: 17.62 MB / 239.4 MB, free: 14.48 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01815/0.03789, allocations: 6.382 MB / 245.8 MB, free: 8.078 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003694/0.04159, allocations: 171.1 kB / 246 MB, free: 7.91 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007318/0.04891, allocations: 6.354 MB / 252.4 MB, free: 1.535 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006701/0.05561, allocations: 3.044 MB / 255.4 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004228/0.05984, allocations: 2.339 MB / 257.7 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01074/0.07058, allocations: 9.292 MB / 267 MB, free: 2.828 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009097/0.07968, allocations: 6.747 MB / 273.8 MB, free: 11.96 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009998/0.08968, allocations: 5.963 MB / 279.7 MB, free: 5.965 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006699/0.09638, allocations: 4.591 MB / 284.3 MB, free: 1.363 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002106/0.09848, allocations: 0.7422 MB / 285.1 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1256/0.2241, allocations: 1.922 MB / 287 MB, free: 18.32 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005142/0.2292, allocations: 3.685 MB / 290.7 MB, free: 18.32 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007233/0.2365, allocations: 2.101 MB / 292.8 MB, free: 18.32 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01222/0.2487, allocations: 7.842 MB / 300.6 MB, free: 17.62 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.965e-05/0.2487, allocations: 3.375 kB / 300.6 MB, free: 17.62 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.346e-06/0.2487, allocations: 2.062 kB / 300.6 MB, free: 17.62 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0005194/0.2492, allocations: 0 / 300.6 MB, free: 17.62 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.01697/0.2662, allocations: 9.855 MB / 310.5 MB, free: 14.27 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.2662, allocations: 7.844 kB / 310.5 MB, free: 14.27 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007272/0.2735, allocations: 2.113 MB / 312.6 MB, free: 14.24 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00761/0.2811, allocations: 4.236 MB / 316.8 MB, free: 13.24 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002457/0.2814, allocations: 433 kB / 317.3 MB, free: 13.23 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001216/0.2826, allocations: 0.5863 MB / 317.8 MB, free: 13.21 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01264/0.2952, allocations: 8.298 MB / 326.1 MB, free: 8.332 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002172/0.2954, allocations: 79.81 kB / 326.2 MB, free: 8.289 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000555/0.296, allocations: 265.2 kB / 326.5 MB, free: 8.074 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00169/0.2977, allocations: 2.327 MB / 328.8 MB, free: 6.156 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00932/0.307, allocations: 4.077 MB / 332.9 MB, free: 2.5 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05508/0.3621, allocations: 47.97 MB / 380.8 MB, free: 2.832 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007868/0.3699, allocations: 2.967 MB / 383.8 MB, free: 15.92 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001237/0.3712, allocations: 0.6776 MB / 384.5 MB, free: 15.24 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01127/0.3824, allocations: 6.778 MB / 391.3 MB, free: 8.555 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.635e-05/0.3825, allocations: 60.56 kB / 391.3 MB, free: 8.488 MB / 346.7 MB Notification: Performance of pre-optimization done (n=227): time 4.689e-06/0.3825, allocations: 4 kB / 391.3 MB, free: 8.484 MB / 346.7 MB Notification: Performance of matching and sorting (n=276): time 0.04717/0.4297, allocations: 17.51 MB / 408.8 MB, free: 7.422 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.144e-05/0.4297, allocations: 162.3 kB / 409 MB, free: 7.238 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006271/0.436, allocations: 5.119 MB / 414.1 MB, free: 3.055 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005756/0.4366, allocations: 69.7 kB / 414.2 MB, free: 2.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002415/0.439, allocations: 4.632 MB / 418.8 MB, free: 14.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001149/0.4401, allocations: 1.102 MB / 419.9 MB, free: 13.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001782/0.4419, allocations: 1.715 MB / 421.6 MB, free: 12.03 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.859e-05/0.442, allocations: 305.1 kB / 421.9 MB, free: 11.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002003/0.444, allocations: 1.202 MB / 423.1 MB, free: 10.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004122/0.4481, allocations: 6.499 MB / 429.6 MB, free: 1.684 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1405/0.5886, allocations: 8.262 MB / 437.9 MB, free: 110.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00021/0.5888, allocations: 53.03 kB / 438 MB, free: 110.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.01213/0.6009, allocations: 6.743 MB / 444.7 MB, free: 108.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.35e-05/0.601, allocations: 85.31 kB / 444.8 MB, free: 108.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001576/0.6011, allocations: 181.8 kB / 445 MB, free: 108.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003121/0.6043, allocations: 1.454 MB / 446.4 MB, free: 108.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003577/0.6078, allocations: 2.228 MB / 448.6 MB, free: 108.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005845/0.6137, allocations: 6.745 MB / 455.4 MB, free: 104.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005443/0.6191, allocations: 408 kB / 455.8 MB, free: 104.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001289/0.6204, allocations: 461.8 kB / 456.2 MB, free: 104.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 840 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1111): * Single equations (assignments): 1104 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,21,76.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.002891/0.6233, allocations: 0.8439 MB / 457.1 MB, free: 104.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001059/0.6244, allocations: 362.9 kB / 457.4 MB, free: 104.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003485/0.6279, allocations: 2.276 MB / 459.7 MB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.599e-05/0.6279, allocations: 29.81 kB / 459.7 MB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/0.6279, allocations: 9.719 kB / 459.7 MB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.618e-05/0.6279, allocations: 18.42 kB / 459.8 MB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01178/0.6397, allocations: 8.336 MB / 468.1 MB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.878e-05/0.6397, allocations: 19.53 kB / 468.1 MB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009717/0.6407, allocations: 439.6 kB / 468.5 MB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002116/0.6428, allocations: 0.8031 MB / 469.4 MB, free: 101.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003259/0.6461, allocations: 1.431 MB / 470.8 MB, free: 101.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002188/0.6463, allocations: 69.44 kB / 470.9 MB, free: 101.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005592/0.6519, allocations: 6.61 MB / 477.5 MB, free: 94.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.981e-05/0.6519, allocations: 28.44 kB / 477.5 MB, free: 94.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005609/0.6575, allocations: 3.789 MB / 481.3 MB, free: 90.44 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001318/0.6588, allocations: 67.98 kB / 481.3 MB, free: 90.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001659/0.6605, allocations: 86.62 kB / 481.4 MB, free: 90.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003682/0.6608, allocations: 244.5 kB / 481.7 MB, free: 90.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001443/0.661, allocations: 80.55 kB / 481.7 MB, free: 89.97 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003509/0.6645, allocations: 2.036 MB / 483.8 MB, free: 88.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.6645, allocations: 0 / 483.8 MB, free: 88.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007589/0.6721, allocations: 1.907 MB / 485.7 MB, free: 86.31 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 84 * Number of states: 2 (revolute1.phi,revolute1.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 (219): * Single equations (assignments): 212 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,21,76.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009795/0.6731, allocations: 305.8 kB / 486 MB, free: 86.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008407/0.6815, allocations: 4.26 MB / 490.2 MB, free: 81.88 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.000623/0.6821, allocations: 154.7 kB / 490.4 MB, free: 81.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001748/0.6838, allocations: 1.364 MB / 491.8 MB, free: 80.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006265/0.6901, allocations: 1.602 MB / 493.4 MB, free: 78.83 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02426/0.7144, allocations: 13.41 MB / 0.4949 GB, free: 65.13 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002982/0.7173, allocations: 2.14 MB / 0.497 GB, free: 62.96 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002766/0.7201, allocations: 0.7934 MB / 0.4978 GB, free: 62.17 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001533/0.7216, allocations: 0.9053 MB / 0.4986 GB, free: 61.25 MB / 378.7 MB Notification: Performance of SimCode: time 2.154e-06/0.7216, allocations: 3.938 kB / 0.4986 GB, free: 61.25 MB / 378.7 MB Notification: Performance of Templates: time 0.1918/0.9135, allocations: 71.49 MB / 0.5685 GB, free: 112.2 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.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.944064331240952]