Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001119/0.00112, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.403/1.403, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001052/0.001052, allocations: 46.55 kB / 301.3 MB, free: 5.844 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1076, allocations: 49.44 MB / 350.7 MB, free: 4.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02078/0.1284, allocations: 18.18 MB / 368.9 MB, free: 2.133 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2392/0.3677, allocations: 6.04 MB / 374.9 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003802/0.3715, allocations: 143.7 kB / 375.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01188/0.3834, allocations: 6.278 MB / 381.4 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01098/0.3946, allocations: 2.841 MB / 384.2 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006616/0.4012, allocations: 2.277 MB / 386.5 MB, free: 6.414 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01615/0.4174, allocations: 9.499 MB / 396 MB, free: 2.137 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01263/0.4301, allocations: 8.424 MB / 404.4 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007005/0.4371, allocations: 3.177 MB / 407.6 MB, free: 8.812 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007169/0.4443, allocations: 4.164 MB / 411.7 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002812/0.4472, allocations: 0.7148 MB / 412.5 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005629/0.4528, allocations: 1.913 MB / 414.4 MB, free: 2.316 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005843/0.4587, allocations: 3.817 MB / 418.2 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009146/0.4679, allocations: 4.143 MB / 422.3 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01642/0.4843, allocations: 12.93 MB / 435.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.4844, allocations: 0 / 435.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4844, allocations: 0 / 435.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004301/0.4848, allocations: 0 / 435.3 MB, free: 13.69 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.02353/0.5084, allocations: 8.908 MB / 444.2 MB, free: 4.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.5084, allocations: 8.031 kB / 444.2 MB, free: 4.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04929/0.5577, allocations: 4.847 MB / 449 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01711/0.5749, allocations: 6.377 MB / 455.4 MB, free: 9.578 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004558/0.5754, allocations: 430.7 kB / 455.8 MB, free: 9.199 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002779/0.5782, allocations: 0.5834 MB / 456.4 MB, free: 8.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03999/0.6182, allocations: 17.04 MB / 473.5 MB, free: 6.797 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004419/0.6187, allocations: 83.27 kB / 473.5 MB, free: 6.715 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002324/0.621, allocations: 264.1 kB / 473.8 MB, free: 6.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005124/0.6262, allocations: 2.662 MB / 476.5 MB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03388/0.6601, allocations: 14.78 MB / 491.2 MB, free: 5.051 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4912/1.151, allocations: 64.51 MB / 0.5427 GB, free: 106.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02471/1.176, allocations: 8.78 MB / 0.5513 GB, free: 105.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006038/1.182, allocations: 5.055 MB / 0.5562 GB, free: 104.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02541/1.208, allocations: 18.64 MB / 0.5744 GB, free: 96.48 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.206e-05/1.208, allocations: 70.06 kB / 0.5745 GB, free: 96.41 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 5.319e-06/1.208, allocations: 0 / 0.5745 GB, free: 96.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.2536/1.461, allocations: 73.98 MB / 0.6468 GB, free: 28.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/1.461, allocations: 376.6 kB / 0.6471 GB, free: 28.25 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008461/1.47, allocations: 6.375 MB / 0.6533 GB, free: 21.87 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001083/1.471, allocations: 89.64 kB / 0.6534 GB, free: 21.77 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002318/1.473, allocations: 4.745 MB / 0.6581 GB, free: 17.03 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00182/1.475, allocations: 1.381 MB / 0.6594 GB, free: 15.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002908/1.478, allocations: 1.974 MB / 0.6613 GB, free: 13.67 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.369e-05/1.478, allocations: 301.1 kB / 0.6616 GB, free: 13.38 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006937/1.485, allocations: 5.992 MB / 0.6675 GB, free: 7.375 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01247/1.498, allocations: 11.02 MB / 0.6782 GB, free: 9.984 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02569/1.523, allocations: 17.97 MB / 0.6958 GB, free: 5.691 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001882/1.524, allocations: 52 kB / 0.6958 GB, free: 5.641 MB / 478.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.2407/1.764, allocations: 23.33 MB / 0.7186 GB, free: 166.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002028/1.765, allocations: 78.91 kB / 0.7187 GB, free: 166.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004421/1.765, allocations: 176.9 kB / 0.7189 GB, free: 166.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02521/1.79, allocations: 7.46 MB / 0.7261 GB, free: 166.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008633/1.799, allocations: 2.196 MB / 0.7283 GB, free: 166.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04702/1.846, allocations: 38.1 MB / 0.7655 GB, free: 150.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009644/1.856, allocations: 0.7388 MB / 0.7662 GB, free: 150.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001971/1.858, allocations: 0.5263 MB / 0.7667 GB, free: 150.3 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * 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 (1091): * Single equations (assignments): 1084 * 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,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.00669/1.864, allocations: 3.432 MB / 0.7701 GB, free: 148.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001629/1.866, allocations: 0.5802 MB / 0.7706 GB, free: 148.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03197/1.898, allocations: 16.96 MB / 0.7872 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-05/1.898, allocations: 51.12 kB / 0.7873 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-05/1.898, allocations: 16 kB / 0.7873 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.866e-05/1.898, allocations: 22.86 kB / 0.7873 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05288/1.951, allocations: 32.14 MB / 0.8187 GB, free: 99.71 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.556e-05/1.951, allocations: 5 kB / 0.8187 GB, free: 99.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00363/1.955, allocations: 0.6072 MB / 0.8193 GB, free: 99.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02038/1.975, allocations: 7.031 MB / 0.8261 GB, free: 92.05 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001027/1.976, allocations: 64 kB / 0.8262 GB, free: 91.99 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04174/2.018, allocations: 36.31 MB / 0.8617 GB, free: 55.46 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/2.018, allocations: 7.938 kB / 0.8617 GB, free: 55.46 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03931/2.058, allocations: 24.6 MB / 0.8857 GB, free: 30.86 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002083/2.06, allocations: 0.6379 MB / 0.8863 GB, free: 30.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002182/2.062, allocations: 60 kB / 0.8864 GB, free: 30.14 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005389/2.067, allocations: 451 kB / 0.8868 GB, free: 29.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001527/2.069, allocations: 242.7 kB / 0.887 GB, free: 29.46 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004337/2.069, allocations: 96.06 kB / 0.8871 GB, free: 29.37 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006502/2.076, allocations: 4.048 MB / 0.8911 GB, free: 25.33 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.71e-07/2.076, allocations: 0 / 0.8911 GB, free: 25.33 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01044/2.086, allocations: 2.29 MB / 0.8933 GB, free: 23.05 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (243): * Single equations (assignments): 236 * 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,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001348/2.088, allocations: 277.1 kB / 0.8936 GB, free: 22.79 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.2398/2.327, allocations: 20.05 MB / 0.9132 GB, free: 171.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/2.328, allocations: 0.75 kB / 0.9132 GB, free: 171.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01154/2.339, allocations: 6.72 MB / 0.9197 GB, free: 168.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006101/2.345, allocations: 0.892 MB / 0.9206 GB, free: 167.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03158/2.377, allocations: 20.77 MB / 0.9409 GB, free: 159.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007494/2.384, allocations: 5.217 MB / 0.946 GB, free: 155.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002563/2.387, allocations: 443 kB / 0.9464 GB, free: 155.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.213e-06/2.387, allocations: 0 / 0.9464 GB, free: 155.5 MB / 494.1 MB Notification: Performance of Templates: time 0.4072/2.794, allocations: 208.7 MB / 1.15 GB, free: 119.6 MB / 494.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches