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.00148/0.00148, allocations: 111.4 kB / 17.29 MB, free: 6.219 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.001405/0.001405, allocations: 197.3 kB / 18.21 MB, free: 5.289 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.381/1.381, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 47.2 kB / 300.8 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1129, allocations: 49.44 MB / 350.2 MB, free: 4.656 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.3124/0.4254, allocations: 81.05 MB / 431.3 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0471/0.4725, allocations: 16.43 MB / 447.7 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02343/0.496, allocations: 375 kB / 448.1 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01213/0.5081, allocations: 6.062 MB / 454.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00899/0.5172, allocations: 2.661 MB / 456.8 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005306/0.5226, allocations: 2.176 MB / 459 MB, free: 7.859 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0155/0.5381, allocations: 10.24 MB / 469.2 MB, free: 13.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01376/0.5519, allocations: 8.855 MB / 478.1 MB, free: 4.668 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006881/0.5588, allocations: 3.26 MB / 481.3 MB, free: 1.398 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007679/0.5666, allocations: 4.624 MB / 486 MB, free: 12.76 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002828/0.5694, allocations: 0.7148 MB / 486.7 MB, free: 12.05 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005641/0.5751, allocations: 1.935 MB / 488.6 MB, free: 10.11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006049/0.5812, allocations: 3.87 MB / 492.5 MB, free: 6.23 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008516/0.5897, allocations: 4.177 MB / 496.7 MB, free: 2.031 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01353/0.6033, allocations: 10.71 MB / 0.4955 GB, free: 7.297 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.6033, allocations: 0 / 0.4955 GB, free: 7.297 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.719e-06/0.6033, allocations: 0 / 0.4955 GB, free: 7.297 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005155/0.6038, allocations: 3.938 kB / 0.4955 GB, free: 7.293 MB / 414.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.02537/0.6292, allocations: 8.915 MB / 0.5042 GB, free: 14.29 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.6293, allocations: 12.03 kB / 0.5042 GB, free: 14.28 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04383/0.6731, allocations: 4.847 MB / 0.5089 GB, free: 9.418 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0161/0.6893, allocations: 6.365 MB / 0.5152 GB, free: 2.977 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003594/0.6897, allocations: 435.7 kB / 0.5156 GB, free: 2.551 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002529/0.6922, allocations: 0.5819 MB / 0.5161 GB, free: 1.969 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4216/1.114, allocations: 17.05 MB / 0.5328 GB, free: 148.2 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005485/1.114, allocations: 78.92 kB / 0.5329 GB, free: 148.2 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002581/1.117, allocations: 269.2 kB / 0.5331 GB, free: 148.2 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005784/1.123, allocations: 2.654 MB / 0.5357 GB, free: 148.2 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03438/1.157, allocations: 14.78 MB / 0.5501 GB, free: 143.9 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07817/1.235, allocations: 64.52 MB / 0.6132 GB, free: 83.17 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0217/1.257, allocations: 8.77 MB / 0.6217 GB, free: 74.24 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005553/1.263, allocations: 5.067 MB / 0.6267 GB, free: 69.17 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0275/1.29, allocations: 18.64 MB / 0.6449 GB, free: 50.39 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.499e-05/1.29, allocations: 68.56 kB / 0.6449 GB, free: 50.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 5.761e-06/1.29, allocations: 7.938 kB / 0.6449 GB, free: 50.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.4535/1.744, allocations: 73.98 MB / 0.7172 GB, free: 151.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001377/1.744, allocations: 379.1 kB / 0.7176 GB, free: 151 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01021/1.754, allocations: 6.365 MB / 0.7238 GB, free: 149 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001276/1.756, allocations: 82.39 kB / 0.7238 GB, free: 148.9 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00318/1.759, allocations: 4.754 MB / 0.7285 GB, free: 146.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001995/1.761, allocations: 1.372 MB / 0.7298 GB, free: 145.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003283/1.764, allocations: 1.98 MB / 0.7318 GB, free: 144.1 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.919e-05/1.764, allocations: 305 kB / 0.7321 GB, free: 143.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007282/1.771, allocations: 5.993 MB / 0.7379 GB, free: 141.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01032/1.782, allocations: 11.02 MB / 0.7487 GB, free: 132.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02021/1.802, allocations: 17.96 MB / 0.7662 GB, free: 119.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001803/1.802, allocations: 48.78 kB / 0.7663 GB, free: 119.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04276/1.845, allocations: 23.35 MB / 0.7891 GB, free: 96.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001554/1.845, allocations: 76 kB / 0.7891 GB, free: 96.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002693/1.846, allocations: 176 kB / 0.7893 GB, free: 96.26 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02066/1.866, allocations: 7.46 MB / 0.7966 GB, free: 88.78 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007333/1.874, allocations: 2.187 MB / 0.7987 GB, free: 86.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04283/1.916, allocations: 38.1 MB / 0.8359 GB, free: 48.08 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009134/1.926, allocations: 0.7371 MB / 0.8366 GB, free: 47.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001928/1.928, allocations: 0.5312 MB / 0.8372 GB, free: 46.81 MB / 462.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.006946/1.935, allocations: 3.427 MB / 0.8405 GB, free: 43.38 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001786/1.936, allocations: 0.5785 MB / 0.8411 GB, free: 42.79 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03032/1.967, allocations: 16.95 MB / 0.8576 GB, free: 25.77 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.771e-05/1.967, allocations: 51.52 kB / 0.8577 GB, free: 25.72 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.293e-05/1.967, allocations: 20 kB / 0.8577 GB, free: 25.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-05/1.967, allocations: 19.92 kB / 0.8577 GB, free: 25.68 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2559/2.223, allocations: 32.14 MB / 0.8891 GB, free: 134.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.369e-05/2.223, allocations: 3.219 kB / 0.8891 GB, free: 134.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003299/2.226, allocations: 0.6037 MB / 0.8897 GB, free: 134 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01956/2.246, allocations: 7.035 MB / 0.8966 GB, free: 132.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001018/2.247, allocations: 63.03 kB / 0.8966 GB, free: 132.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04284/2.29, allocations: 36.3 MB / 0.9321 GB, free: 111 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/2.29, allocations: 7.672 kB / 0.9321 GB, free: 111 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03814/2.328, allocations: 24.6 MB / 0.9561 GB, free: 86.65 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001978/2.33, allocations: 0.6283 MB / 0.9567 GB, free: 86.32 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00209/2.332, allocations: 67.77 kB / 0.9568 GB, free: 86.26 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004753/2.337, allocations: 447.2 kB / 0.9572 GB, free: 85.82 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00141/2.338, allocations: 244.5 kB / 0.9575 GB, free: 85.58 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003939/2.339, allocations: 99.66 kB / 0.9575 GB, free: 85.49 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006027/2.345, allocations: 4.048 MB / 0.9615 GB, free: 81.45 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/2.345, allocations: 0 / 0.9615 GB, free: 81.45 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009671/2.354, allocations: 2.29 MB / 0.9637 GB, free: 79.17 MB / 462.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.001268/2.356, allocations: 281.5 kB / 0.964 GB, free: 78.91 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02949/2.385, allocations: 20.06 MB / 0.9836 GB, free: 58.91 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.254e-05/2.385, allocations: 4 kB / 0.9836 GB, free: 58.91 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01012/2.395, allocations: 6.71 MB / 0.9902 GB, free: 52.19 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007241/2.403, allocations: 0.8749 MB / 0.991 GB, free: 51.35 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03458/2.437, allocations: 24.11 MB / 1.015 GB, free: 27.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006536/2.444, allocations: 5.22 MB / 1.02 GB, free: 21.94 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002596/2.447, allocations: 443.4 kB / 1.02 GB, free: 21.5 MB / 462.1 MB Notification: Performance of SimCode: time 8.22e-07/2.447, allocations: 0 / 1.02 GB, free: 21.5 MB / 462.1 MB Notification: Performance of Templates: time 0.6401/3.087, allocations: 208.7 MB / 1.224 GB, free: 149.7 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