Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001353/0.001353, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001391/0.001391, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.446/1.446, allocations: 227.7 MB / 247.7 MB, free: 10.37 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001953, allocations: 55.38 kB / 307.9 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1045, allocations: 50.54 MB / 358.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2095/0.3141, allocations: 18.04 MB / 376.5 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01526/0.3294, allocations: 6.047 MB / 382.5 MB, free: 7.676 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005031/0.3345, allocations: 141.5 kB / 382.6 MB, free: 7.648 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0115/0.3461, allocations: 6.241 MB / 388.9 MB, free: 5.785 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008388/0.3545, allocations: 2.813 MB / 391.7 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005108/0.3596, allocations: 2.269 MB / 394 MB, free: 2.801 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01579/0.3754, allocations: 9.693 MB / 403.7 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01187/0.3873, allocations: 8.424 MB / 412.1 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007028/0.3944, allocations: 3.171 MB / 415.3 MB, free: 2.395 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00814/0.4026, allocations: 4.16 MB / 419.4 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002285/0.4049, allocations: 0.7148 MB / 420.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005042/0.41, allocations: 1.885 MB / 422 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005103/0.4151, allocations: 3.8 MB / 425.8 MB, free: 7.809 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007733/0.4228, allocations: 4.123 MB / 429.9 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0178/0.4407, allocations: 12.88 MB / 442.8 MB, free: 6.746 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.879e-06/0.4407, allocations: 0 / 442.8 MB, free: 6.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4407, allocations: 3.938 kB / 442.8 MB, free: 6.742 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004581/0.4412, allocations: 0 / 442.8 MB, free: 6.742 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.0255/0.4667, allocations: 8.915 MB / 451.7 MB, free: 13.74 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.4668, allocations: 12.03 kB / 451.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0486/0.5154, allocations: 4.84 MB / 456.6 MB, free: 8.875 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01687/0.5323, allocations: 6.267 MB / 462.9 MB, free: 2.531 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004268/0.5327, allocations: 431.7 kB / 463.3 MB, free: 2.109 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002664/0.5354, allocations: 0.5858 MB / 463.9 MB, free: 1.523 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03926/0.5747, allocations: 17.05 MB / 480.9 MB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003355/0.5751, allocations: 79.33 kB / 481 MB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001603/0.5767, allocations: 263.8 kB / 481.3 MB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00503/0.5817, allocations: 2.658 MB / 483.9 MB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03444/0.6162, allocations: 14.78 MB / 498.7 MB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5292/1.145, allocations: 64.51 MB / 0.55 GB, free: 100.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02389/1.169, allocations: 8.787 MB / 0.5586 GB, free: 100.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005922/1.175, allocations: 5.052 MB / 0.5635 GB, free: 98.48 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02605/1.201, allocations: 18.64 MB / 0.5817 GB, free: 90.02 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.397e-05/1.202, allocations: 63.06 kB / 0.5818 GB, free: 89.96 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 6.121e-06/1.202, allocations: 0 / 0.5818 GB, free: 89.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.2455/1.447, allocations: 73.99 MB / 0.654 GB, free: 21.18 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/1.447, allocations: 372.6 kB / 0.6544 GB, free: 20.74 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007701/1.455, allocations: 6.371 MB / 0.6606 GB, free: 14.36 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008691/1.456, allocations: 81.7 kB / 0.6607 GB, free: 14.27 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00215/1.458, allocations: 4.746 MB / 0.6653 GB, free: 9.527 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001516/1.459, allocations: 1.379 MB / 0.6667 GB, free: 8.16 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002709/1.462, allocations: 1.977 MB / 0.6686 GB, free: 6.176 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.18e-05/1.462, allocations: 305.1 kB / 0.6689 GB, free: 5.875 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006751/1.469, allocations: 5.998 MB / 0.6747 GB, free: 15.87 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01505/1.484, allocations: 11.02 MB / 0.6855 GB, free: 2.477 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02596/1.51, allocations: 17.95 MB / 0.703 GB, free: 14.12 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001684/1.51, allocations: 55.94 kB / 0.7031 GB, free: 14.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.2473/1.758, allocations: 23.34 MB / 0.7259 GB, free: 162.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000151/1.758, allocations: 79.44 kB / 0.726 GB, free: 162.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003034/1.758, allocations: 175.4 kB / 0.7261 GB, free: 162.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02317/1.781, allocations: 7.462 MB / 0.7334 GB, free: 162.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007829/1.789, allocations: 2.189 MB / 0.7356 GB, free: 162.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04463/1.834, allocations: 38.11 MB / 0.7728 GB, free: 141.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00878/1.843, allocations: 0.7358 MB / 0.7735 GB, free: 140.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001729/1.844, allocations: 0.5312 MB / 0.774 GB, free: 140.1 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.006105/1.851, allocations: 3.432 MB / 0.7774 GB, free: 136.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001407/1.852, allocations: 0.575 MB / 0.7779 GB, free: 136.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02993/1.882, allocations: 16.96 MB / 0.7945 GB, free: 119.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-05/1.882, allocations: 48 kB / 0.7945 GB, free: 119.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.521e-05/1.882, allocations: 20 kB / 0.7945 GB, free: 119.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.809e-05/1.882, allocations: 23.92 kB / 0.7946 GB, free: 119.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05013/1.932, allocations: 32.14 MB / 0.826 GB, free: 86.99 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.911e-05/1.932, allocations: 4 kB / 0.826 GB, free: 86.99 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003181/1.936, allocations: 0.6006 MB / 0.8265 GB, free: 86.39 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01932/1.955, allocations: 7.032 MB / 0.8334 GB, free: 79.34 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008748/1.956, allocations: 67.92 kB / 0.8335 GB, free: 79.28 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03997/1.996, allocations: 36.32 MB / 0.8689 GB, free: 42.75 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/1.996, allocations: 4 kB / 0.8689 GB, free: 42.75 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03922/2.035, allocations: 24.6 MB / 0.893 GB, free: 18.15 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001851/2.037, allocations: 0.6283 MB / 0.8936 GB, free: 17.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002296/2.039, allocations: 63.94 kB / 0.8936 GB, free: 17.43 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005573/2.045, allocations: 451.2 kB / 0.8941 GB, free: 17 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.2042/2.249, allocations: 238.7 kB / 0.8943 GB, free: 162.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009933/2.25, allocations: 95.75 kB / 0.8944 GB, free: 162.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.008349/2.258, allocations: 4.048 MB / 0.8983 GB, free: 162 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.71e-07/2.259, allocations: 0 / 0.8983 GB, free: 162 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01075/2.269, allocations: 2.279 MB / 0.9006 GB, free: 162 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.001432/2.271, allocations: 293.3 kB / 0.9009 GB, free: 161.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.03181/2.303, allocations: 20.06 MB / 0.9204 GB, free: 158.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/2.303, allocations: 0 / 0.9204 GB, free: 158.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009753/2.312, allocations: 6.703 MB / 0.927 GB, free: 155.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006062/2.318, allocations: 0.8774 MB / 0.9278 GB, free: 154.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03044/2.349, allocations: 20.75 MB / 0.9481 GB, free: 138.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00822/2.357, allocations: 5.219 MB / 0.9532 GB, free: 134.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002446/2.36, allocations: 441.3 kB / 0.9536 GB, free: 134.4 MB / 494.1 MB Notification: Performance of SimCode: time 1.483e-06/2.36, allocations: 7.938 kB / 0.9536 GB, free: 134.4 MB / 494.1 MB Notification: Performance of Templates: time 0.388/2.748, allocations: 208.6 MB / 1.157 GB, free: 93.16 MB / 494.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches