Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.0008424/0.0008424, allocations: 97.33 kB / 16.95 MB, free: 6.453 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.0009512/0.000951, allocations: 185.6 kB / 17.84 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.533/1.533, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000494/0.0004943, allocations: 12 kB / 280.8 MB, free: 3.734 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1116, allocations: 47.59 MB / 328.4 MB, free: 4.078 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.3156/0.4272, allocations: 73.88 MB / 402.2 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04463/0.4719, allocations: 15.85 MB / 418.1 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02168/0.4936, allocations: 367.7 kB / 418.5 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01319/0.5069, allocations: 3.632 MB / 422.1 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03776/0.5447, allocations: 10.78 MB / 432.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006937/0.5516, allocations: 1.222 MB / 434.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.09018/0.6418, allocations: 66.44 MB / 0.4888 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01953/0.6614, allocations: 10.24 MB / 0.4988 GB, free: 68 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00634/0.6678, allocations: 2.417 MB / 0.5012 GB, free: 13.64 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006935/0.6748, allocations: 3.653 MB / 0.5047 GB, free: 9.973 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001797/0.6766, allocations: 248 kB / 0.505 GB, free: 9.73 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004386/0.681, allocations: 1.303 MB / 0.5062 GB, free: 8.426 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005552/0.6866, allocations: 3.242 MB / 0.5094 GB, free: 5.176 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003824/0.6904, allocations: 1.439 MB / 0.5108 GB, free: 3.727 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01372/0.7042, allocations: 10.36 MB / 0.5209 GB, free: 9.344 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.7042, allocations: 0 / 0.5209 GB, free: 9.344 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.7042, allocations: 0 / 0.5209 GB, free: 9.344 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005784/0.7048, allocations: 0 / 0.5209 GB, free: 9.344 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.02102/0.7259, allocations: 7.426 MB / 0.5282 GB, free: 1.836 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.7259, allocations: 8.031 kB / 0.5282 GB, free: 1.828 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4136/1.14, allocations: 4.961 MB / 0.533 GB, free: 147.4 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01708/1.157, allocations: 6.465 MB / 0.5393 GB, free: 146.7 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004706/1.157, allocations: 434.2 kB / 0.5398 GB, free: 146.7 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002665/1.16, allocations: 0.5821 MB / 0.5403 GB, free: 146.7 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03005/1.19, allocations: 17.07 MB / 0.557 GB, free: 135.4 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002216/1.19, allocations: 78.7 kB / 0.5571 GB, free: 135.4 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007195/1.191, allocations: 270.6 kB / 0.5573 GB, free: 135.2 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003413/1.194, allocations: 2.658 MB / 0.5599 GB, free: 132.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02609/1.22, allocations: 14.77 MB / 0.5743 GB, free: 117.8 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07958/1.3, allocations: 64.6 MB / 0.6374 GB, free: 52.14 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02102/1.321, allocations: 8.824 MB / 0.6461 GB, free: 43.17 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005958/1.327, allocations: 5.051 MB / 0.651 GB, free: 38.11 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02719/1.354, allocations: 18.63 MB / 0.6692 GB, free: 19.39 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.034e-05/1.354, allocations: 72.09 kB / 0.6692 GB, free: 19.31 MB / 430.1 MB Notification: Performance of pre-optimization done (n=281): time 6.372e-06/1.354, allocations: 0 / 0.6692 GB, free: 19.31 MB / 430.1 MB Notification: Performance of matching and sorting (n=374): time 0.4448/1.799, allocations: 75.16 MB / 0.7426 GB, free: 109.1 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/1.799, allocations: 390.7 kB / 0.743 GB, free: 108.7 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01125/1.811, allocations: 6.372 MB / 0.7492 GB, free: 102.3 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001065/1.812, allocations: 84.28 kB / 0.7493 GB, free: 102.2 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002914/1.815, allocations: 4.758 MB / 0.754 GB, free: 97.46 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001755/1.817, allocations: 1.378 MB / 0.7553 GB, free: 96.09 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008856/1.817, allocations: 189.6 kB / 0.7555 GB, free: 95.91 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003794/1.818, allocations: 0.713 MB / 0.7562 GB, free: 95.19 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007741/1.826, allocations: 5.953 MB / 0.762 GB, free: 89.23 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009754/1.835, allocations: 10.98 MB / 0.7727 GB, free: 75.8 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009878/1.845, allocations: 7.898 MB / 0.7804 GB, free: 67.89 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001565/1.845, allocations: 52 kB / 0.7805 GB, free: 67.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04423/1.89, allocations: 23.27 MB / 0.8032 GB, free: 44.53 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002312/1.89, allocations: 80 kB / 0.8033 GB, free: 44.45 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002818/1.89, allocations: 172 kB / 0.8035 GB, free: 44.28 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01968/1.91, allocations: 7.524 MB / 0.8108 GB, free: 36.74 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007505/1.917, allocations: 2.187 MB / 0.8129 GB, free: 34.55 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2763/2.194, allocations: 35.56 MB / 0.8477 GB, free: 115.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008452/2.202, allocations: 0.7452 MB / 0.8484 GB, free: 115.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00176/2.204, allocations: 0.5266 MB / 0.8489 GB, free: 115.6 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,77.8%) 67,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.00784/2.212, allocations: 3.44 MB / 0.8523 GB, free: 115.4 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001587/2.214, allocations: 0.5766 MB / 0.8528 GB, free: 115.4 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03043/2.244, allocations: 16.94 MB / 0.8694 GB, free: 110.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.501e-05/2.244, allocations: 46.78 kB / 0.8694 GB, free: 110.5 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.856e-05/2.244, allocations: 20.84 kB / 0.8694 GB, free: 110.5 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.621e-05/2.244, allocations: 22 kB / 0.8695 GB, free: 110.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0543/2.299, allocations: 32.17 MB / 0.9009 GB, free: 93.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.125e-05/2.299, allocations: 4 kB / 0.9009 GB, free: 93.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003016/2.302, allocations: 0.6081 MB / 0.9015 GB, free: 93.38 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01823/2.32, allocations: 7.138 MB / 0.9084 GB, free: 86.28 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001126/2.321, allocations: 67.94 kB / 0.9085 GB, free: 86.21 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04089/2.362, allocations: 33.87 MB / 0.9416 GB, free: 52.23 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/2.362, allocations: 10.48 kB / 0.9416 GB, free: 52.22 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03807/2.4, allocations: 24.58 MB / 0.9656 GB, free: 27.8 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004905/2.405, allocations: 1.669 MB / 0.9672 GB, free: 26.11 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003052/2.408, allocations: 61.48 kB / 0.9673 GB, free: 26.05 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005767/2.414, allocations: 447.3 kB / 0.9677 GB, free: 25.61 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001642/2.416, allocations: 250.5 kB / 0.968 GB, free: 25.37 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00096/2.417, allocations: 93.02 kB / 0.968 GB, free: 25.28 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.007981/2.425, allocations: 4.049 MB / 0.972 GB, free: 21.23 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.01e-07/2.425, allocations: 3.938 kB / 0.972 GB, free: 21.23 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01102/2.436, allocations: 2.286 MB / 0.9742 GB, free: 18.95 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.001558/2.437, allocations: 277.1 kB / 0.9745 GB, free: 18.7 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.02287/2.46, allocations: 14.81 MB / 0.989 GB, free: 3.918 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.21e-05/2.46, allocations: 0 / 0.989 GB, free: 3.918 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01114/2.471, allocations: 6.688 MB / 0.9955 GB, free: 13.19 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0107/2.482, allocations: 0.8416 MB / 0.9963 GB, free: 12.37 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.243/2.725, allocations: 22.84 MB / 1.019 GB, free: 134.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009269/2.734, allocations: 5.284 MB / 1.024 GB, free: 133.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.008617/2.743, allocations: 3.027 MB / 1.027 GB, free: 133.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002041/2.745, allocations: 388 kB / 1.027 GB, free: 133.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.893e-06/2.745, allocations: 0 / 1.027 GB, free: 133.5 MB / 446.1 MB Notification: Performance of Templates: time 0.1537/2.899, allocations: 104.1 MB / 1.129 GB, free: 41.38 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches