Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001828/0.001828, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001782/0.001782, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9869/0.9869, allocations: 177 MB / 204.8 MB, free: 5.574 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.943e-06/1.943e-06, allocations: 0 / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.978e-05/3.172e-05, allocations: 5.266 kB / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01189/0.01192, allocations: 15.45 MB / 288.4 MB, free: 1.922 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1366/0.1485, allocations: 5.054 MB / 293.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002003/0.1505, allocations: 135.9 kB / 293.5 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005334/0.1559, allocations: 4.782 MB / 298.3 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004636/0.1605, allocations: 2.674 MB / 301 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00184/0.1623, allocations: 1.299 MB / 302.3 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007328/0.1697, allocations: 9.21 MB / 311.5 MB, free: 8.004 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004347/0.174, allocations: 5.212 MB / 316.7 MB, free: 4.117 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006279/0.1803, allocations: 5.393 MB / 322.1 MB, free: 15.16 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00416/0.1845, allocations: 3.673 MB / 325.8 MB, free: 11.77 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001098/0.1856, allocations: 0.5078 MB / 326.3 MB, free: 11.26 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002102/0.1877, allocations: 1.448 MB / 327.7 MB, free: 9.848 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001883/0.1895, allocations: 3.189 MB / 330.9 MB, free: 6.754 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002147/0.1917, allocations: 1.993 MB / 332.9 MB, free: 4.848 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006326/0.198, allocations: 6.768 MB / 339.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.198, allocations: 0 / 339.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.198, allocations: 3.938 kB / 339.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002596/0.1983, allocations: 0 / 339.7 MB, free: 14.37 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.01201/0.2103, allocations: 8.336 MB / 348 MB, free: 6.086 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.2103, allocations: 11.98 kB / 348 MB, free: 6.074 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008575/0.2189, allocations: 3.881 MB / 351.9 MB, free: 2.234 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005099/0.224, allocations: 3.98 MB / 355.9 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001791/0.2242, allocations: 334.1 kB / 356.2 MB, free: 13.93 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005879/0.2248, allocations: 464.8 kB / 356.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01219/0.237, allocations: 8.748 MB / 365.4 MB, free: 3.516 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001541/0.2371, allocations: 71.41 kB / 365.5 MB, free: 3.445 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004295/0.2375, allocations: 215.8 kB / 365.7 MB, free: 3.234 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002143/0.2397, allocations: 2.497 MB / 368.2 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0115/0.2512, allocations: 4.701 MB / 372.9 MB, free: 12.01 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1726/0.4238, allocations: 59.72 MB / 432.6 MB, free: 102.6 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008896/0.4327, allocations: 3.143 MB / 435.8 MB, free: 102.4 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001612/0.4343, allocations: 0.9525 MB / 436.7 MB, free: 102.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009761/0.444, allocations: 7.284 MB / 444 MB, free: 101.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.262e-05/0.4441, allocations: 67.12 kB / 444.1 MB, free: 101.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=237): time 4.889e-06/0.4441, allocations: 0 / 444.1 MB, free: 101.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=349): time 0.133/0.5771, allocations: 76.94 MB / 0.5088 GB, free: 42.03 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.367e-05/0.5772, allocations: 244 kB / 0.509 GB, free: 41.74 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004808/0.582, allocations: 4.874 MB / 0.5138 GB, free: 37.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007009/0.5827, allocations: 77.7 kB / 0.5139 GB, free: 36.99 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001743/0.5844, allocations: 4.599 MB / 0.5184 GB, free: 32.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001102/0.5855, allocations: 1.387 MB / 0.5197 GB, free: 31.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001755/0.5873, allocations: 1.855 MB / 0.5215 GB, free: 29.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.059e-05/0.5873, allocations: 476.8 kB / 0.522 GB, free: 28.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002584/0.5899, allocations: 1.876 MB / 0.5238 GB, free: 27.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004201/0.5941, allocations: 8.83 MB / 0.5324 GB, free: 15.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007761/0.6019, allocations: 11.65 MB / 0.5438 GB, free: 0.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.338e-05/0.6019, allocations: 44 kB / 0.5439 GB, free: 0.707 MB / 378.7 MB Notification: Performance of matching and sorting (n=1135) (initialization): time 0.2021/0.804, allocations: 32.15 MB / 0.5753 GB, free: 119.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001088/0.8041, allocations: 76.91 kB / 0.5753 GB, free: 119.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002307/0.8043, allocations: 160.9 kB / 0.5755 GB, free: 119.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02649/0.8308, allocations: 17.04 MB / 0.5921 GB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003681/0.8345, allocations: 1.752 MB / 0.5938 GB, free: 116.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04122/0.8757, allocations: 27.98 MB / 0.6212 GB, free: 93.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005862/0.8816, allocations: 1.03 MB / 0.6222 GB, free: 92.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008938/0.8825, allocations: 492 kB / 0.6226 GB, free: 92.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 734 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (934): * Single equations (assignments): 927 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(21,67,29.3%), (17,35,35.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,27)} Notification: Performance of prepare postOptimizeDAE: time 0.00206/0.8845, allocations: 0.828 MB / 0.6234 GB, free: 91.51 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001108/0.8856, allocations: 0.6057 MB / 0.624 GB, free: 91.18 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04298/0.9286, allocations: 27.66 MB / 0.6511 GB, free: 63.41 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.043e-05/0.9286, allocations: 40 kB / 0.6511 GB, free: 63.37 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-05/0.9287, allocations: 24 kB / 0.6511 GB, free: 63.35 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.127e-05/0.9288, allocations: 15.94 kB / 0.6511 GB, free: 63.33 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06067/0.9894, allocations: 44.92 MB / 0.695 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.372e-05/0.9895, allocations: 8 kB / 0.695 GB, free: 15.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009202/0.9904, allocations: 339.5 kB / 0.6953 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1687/1.159, allocations: 16.43 MB / 0.7114 GB, free: 113.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006995/1.16, allocations: 74.02 kB / 0.7114 GB, free: 113.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03626/1.196, allocations: 23.82 MB / 0.7347 GB, free: 107.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/1.196, allocations: 15.44 kB / 0.7347 GB, free: 107.9 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04819/1.244, allocations: 29.75 MB / 0.7638 GB, free: 94.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001489/1.246, allocations: 0.5273 MB / 0.7643 GB, free: 94.06 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006344/1.246, allocations: 67.36 kB / 0.7644 GB, free: 94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002271/1.249, allocations: 0.6604 MB / 0.765 GB, free: 93.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001235/1.25, allocations: 308.6 kB / 0.7653 GB, free: 93.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002258/1.25, allocations: 99.98 kB / 0.7654 GB, free: 92.95 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002352/1.252, allocations: 2.177 MB / 0.7675 GB, free: 90.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.252, allocations: 0 / 0.7675 GB, free: 90.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006424/1.259, allocations: 2.466 MB / 0.7699 GB, free: 88.33 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * Number of states: 2 (j1.phi,j1.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 (167): * Single equations (assignments): 160 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(21,60,29.3%), (17,33,35.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,27)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006003/1.26, allocations: 232.8 kB / 0.7701 GB, free: 88.13 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01419/1.274, allocations: 10.77 MB / 0.7807 GB, free: 77.68 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/1.274, allocations: 3.938 kB / 0.7807 GB, free: 77.67 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009034/1.283, allocations: 6.583 MB / 0.7871 GB, free: 71.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002936/1.286, allocations: 0.6811 MB / 0.7878 GB, free: 70.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01681/1.302, allocations: 13.93 MB / 0.8014 GB, free: 56.35 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001779/1.304, allocations: 1.961 MB / 0.8033 GB, free: 54.36 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002761/1.307, allocations: 1.861 MB / 0.8051 GB, free: 52.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005124/1.308, allocations: 304.5 kB / 0.8054 GB, free: 52.2 MB / 410.7 MB Notification: Performance of SimCode: time 2.264e-06/1.308, allocations: 0 / 0.8054 GB, free: 52.2 MB / 410.7 MB Notification: Performance of Templates: time 0.236/1.544, allocations: 137.5 MB / 0.9397 GB, free: 57.62 MB / 410.7 MB " [Timeout remaining time 658] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.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: 5.986854325979948]