Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000969/0.0009685, allocations: 93.88 kB / 16.65 MB, free: 6.547 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 178.7 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 223.3 MB / 241.6 MB, free: 96 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002541/0.0002541, allocations: 11.94 kB / 301.4 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1074, allocations: 50.41 MB / 351.8 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2719/0.3793, allocations: 73.52 MB / 425.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03582/0.4151, allocations: 14.87 MB / 440.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01373/0.4289, allocations: 335.1 kB / 440.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0022/0.4312, allocations: 0.6062 MB / 441.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006596/0.4378, allocations: 2.382 MB / 443.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002574/0.4404, allocations: 1.057 MB / 444.6 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01424/0.4546, allocations: 11.18 MB / 455.8 MB, free: 12.26 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01072/0.4654, allocations: 7.375 MB / 463.1 MB, free: 4.797 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003757/0.4692, allocations: 1.863 MB / 465 MB, free: 2.926 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00504/0.4743, allocations: 3.177 MB / 468.2 MB, free: 15.74 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008473/0.4751, allocations: 219.9 kB / 468.4 MB, free: 15.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002625/0.4778, allocations: 1.275 MB / 469.7 MB, free: 14.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002587/0.4804, allocations: 2.633 MB / 472.3 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003112/0.4835, allocations: 2.971 MB / 475.3 MB, free: 8.609 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009215/0.4927, allocations: 9.634 MB / 484.9 MB, free: 14.94 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.4928, allocations: 0 / 484.9 MB, free: 14.94 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.4928, allocations: 0 / 484.9 MB, free: 14.94 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002585/0.493, allocations: 0 / 484.9 MB, free: 14.94 MB / 398.1 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.01513/0.5082, allocations: 6.3 MB / 491.2 MB, free: 8.559 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.5082, allocations: 12.03 kB / 491.2 MB, free: 8.547 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01551/0.5238, allocations: 3.245 MB / 494.5 MB, free: 5.289 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01019/0.534, allocations: 4.715 MB / 499.2 MB, free: 0.4922 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002837/0.5343, allocations: 337.3 kB / 499.5 MB, free: 164 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001564/0.5359, allocations: 471.6 kB / 500 MB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0262/0.5621, allocations: 14.6 MB / 0.5025 GB, free: 176 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001963/0.5623, allocations: 71.28 kB / 0.5026 GB, free: 104 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006654/0.563, allocations: 211.8 kB / 0.5028 GB, free: 15.89 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005573/0.5686, allocations: 2.84 MB / 0.5056 GB, free: 13.04 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02746/0.5961, allocations: 13.24 MB / 0.5185 GB, free: 15.78 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2701/0.8662, allocations: 58.51 MB / 0.5756 GB, free: 110 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0165/0.8828, allocations: 7.739 MB / 0.5832 GB, free: 107.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005202/0.888, allocations: 5.048 MB / 0.5881 GB, free: 105.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01541/0.9034, allocations: 12.81 MB / 0.6006 GB, free: 97.13 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.917e-05/0.9035, allocations: 70.7 kB / 0.6007 GB, free: 97.05 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 5.5e-06/0.9035, allocations: 0.6562 kB / 0.6007 GB, free: 97.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.03/2.934, allocations: 407.2 MB / 0.9983 GB, free: 54.99 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.685e-05/2.934, allocations: 269.6 kB / 0.9986 GB, free: 54.67 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007147/2.941, allocations: 5.451 MB / 1.004 GB, free: 49.25 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00172/2.943, allocations: 114 kB / 1.004 GB, free: 49.13 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002122/2.945, allocations: 3.938 MB / 1.008 GB, free: 45.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003001/2.948, allocations: 2.009 MB / 1.01 GB, free: 43.21 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003212/2.951, allocations: 0.832 MB / 1.011 GB, free: 42.38 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/2.951, allocations: 309.1 kB / 1.011 GB, free: 42.07 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01354/2.965, allocations: 11.06 MB / 1.022 GB, free: 31 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2512/3.216, allocations: 15.24 MB / 1.037 GB, free: 141.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03822/3.255, allocations: 27.45 MB / 1.063 GB, free: 127.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002811/3.255, allocations: 38.53 kB / 1.063 GB, free: 127.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5434/3.798, allocations: 141.1 MB / 1.201 GB, free: 131.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001495/3.798, allocations: 65.56 kB / 1.201 GB, free: 131.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001931/3.799, allocations: 143.2 kB / 1.201 GB, free: 131.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0828/3.881, allocations: 34.75 MB / 1.235 GB, free: 125.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005877/3.887, allocations: 1.568 MB / 1.237 GB, free: 125.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4616/4.349, allocations: 190.7 MB / 1.423 GB, free: 104.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01447/4.363, allocations: 1.715 MB / 1.425 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003248/4.367, allocations: 0.5392 MB / 1.425 GB, free: 103.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * 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 (840): * Single equations (assignments): 833 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,164,40.5%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.009781/4.377, allocations: 3.089 MB / 1.428 GB, free: 100.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002904/4.379, allocations: 0.5768 MB / 1.429 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5522/4.932, allocations: 136.7 MB / 1.562 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.644e-05/4.932, allocations: 58.92 kB / 1.562 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001538/4.932, allocations: 64.55 kB / 1.563 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001064/4.932, allocations: 23.91 kB / 1.563 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.619/5.551, allocations: 206.2 MB / 1.764 GB, free: 120.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.905e-05/5.551, allocations: 15.25 kB / 1.764 GB, free: 120.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001521/5.553, allocations: 329.3 kB / 1.764 GB, free: 120.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07301/5.626, allocations: 33.92 MB / 1.797 GB, free: 91.75 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001402/5.627, allocations: 99.98 kB / 1.797 GB, free: 91.66 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4021/6.029, allocations: 173.6 MB / 1.967 GB, free: 88.77 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.646e-06/6.029, allocations: 8.062 kB / 1.967 GB, free: 88.77 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5523/6.582, allocations: 152.5 MB / 2.116 GB, free: 103.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001803/6.583, allocations: 0.6285 MB / 2.117 GB, free: 103.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002513/6.586, allocations: 102.3 kB / 2.117 GB, free: 103.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009501/6.596, allocations: 1.484 MB / 2.118 GB, free: 101.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003624/6.599, allocations: 0.4969 MB / 2.119 GB, free: 101.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009243/6.6, allocations: 141 kB / 2.119 GB, free: 101.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004398/6.605, allocations: 3.469 MB / 2.122 GB, free: 98.85 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.82e-07/6.605, allocations: 0 / 2.122 GB, free: 98.85 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0127/6.617, allocations: 3.856 MB / 2.126 GB, free: 95.09 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001598/6.619, allocations: 251.4 kB / 2.126 GB, free: 94.85 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05484/6.674, allocations: 33.71 MB / 2.159 GB, free: 61.29 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.115e-05/6.674, allocations: 4 kB / 2.159 GB, free: 61.29 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0377/6.711, allocations: 20.51 MB / 2.179 GB, free: 40.79 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01149/6.723, allocations: 0.7407 MB / 2.18 GB, free: 40.07 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.237/6.96, allocations: 30.45 MB / 2.209 GB, free: 128.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00722/6.967, allocations: 5.097 MB / 2.214 GB, free: 127.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006045/6.973, allocations: 2.054 MB / 2.216 GB, free: 127.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009396/6.974, allocations: 304.1 kB / 2.217 GB, free: 127.2 MB / 478.1 MB Notification: Performance of SimCode: time 5.91e-07/6.974, allocations: 4.625 kB / 2.217 GB, free: 127.2 MB / 478.1 MB Notification: Performance of Templates: time 0.5326/7.507, allocations: 262.1 MB / 2.473 GB, free: 67.02 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches