Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001337/0.001337, allocations: 174.1 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.53/1.53, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000791/0.000791, allocations: 95.84 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003813/0.0003813, allocations: 8 kB / 327.5 MB, free: 15.9 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.252, allocations: 47.57 MB / 375.1 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.05597/0.308, allocations: 73.91 MB / 449 MB, free: 6.633 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03596/0.344, allocations: 15.86 MB / 464.8 MB, free: 6.727 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01384/0.3579, allocations: 367.1 kB / 465.2 MB, free: 6.367 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01089/0.3688, allocations: 3.627 MB / 468.8 MB, free: 2.723 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02888/0.3977, allocations: 10.79 MB / 479.6 MB, free: 7.891 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00576/0.4035, allocations: 1.314 MB / 480.9 MB, free: 6.574 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.2883/0.6918, allocations: 66.49 MB / 0.5346 GB, free: 14.34 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01391/0.7058, allocations: 11.43 MB / 0.5458 GB, free: 6.148 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005039/0.7109, allocations: 2.416 MB / 0.5481 GB, free: 4.504 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00553/0.7164, allocations: 3.657 MB / 0.5517 GB, free: 1.883 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001407/0.7179, allocations: 248 kB / 0.5519 GB, free: 1.641 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003604/0.7215, allocations: 1.502 MB / 0.5534 GB, free: 460 kB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003764/0.7253, allocations: 3.244 MB / 0.5566 GB, free: 14.05 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004669/0.73, allocations: 3.296 MB / 0.5598 GB, free: 12.88 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01246/0.7424, allocations: 10.37 MB / 0.5699 GB, free: 3.875 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.488e-06/0.7425, allocations: 0 / 0.5699 GB, free: 3.875 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.926e-06/0.7425, allocations: 0 / 0.5699 GB, free: 3.875 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000437/0.7429, allocations: 0 / 0.5699 GB, free: 3.875 MB / 394.7 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.01816/0.7611, allocations: 7.329 MB / 0.5771 GB, free: 13.14 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.199e-05/0.7612, allocations: 8.031 kB / 0.5771 GB, free: 13.14 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04021/0.8014, allocations: 4.967 MB / 0.5819 GB, free: 8.309 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01503/0.8165, allocations: 6.574 MB / 0.5884 GB, free: 3.641 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003451/0.8169, allocations: 437.5 kB / 0.5888 GB, free: 3.402 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00202/0.8189, allocations: 0.5881 MB / 0.5893 GB, free: 3.016 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03257/0.8515, allocations: 17.06 MB / 0.606 GB, free: 5.914 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002559/0.8518, allocations: 77.52 kB / 0.6061 GB, free: 5.867 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009023/0.8527, allocations: 270.8 kB / 0.6063 GB, free: 5.793 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004042/0.8567, allocations: 2.662 MB / 0.6089 GB, free: 3.602 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03052/0.8873, allocations: 14.78 MB / 0.6234 GB, free: 9.344 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4608/1.348, allocations: 64.62 MB / 0.6865 GB, free: 154.2 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02051/1.369, allocations: 8.812 MB / 0.6951 GB, free: 153.5 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005127/1.374, allocations: 5.058 MB / 0.7 GB, free: 152.6 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02472/1.399, allocations: 18.64 MB / 0.7182 GB, free: 141.1 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.569e-05/1.399, allocations: 72.91 kB / 0.7183 GB, free: 141.1 MB / 474.8 MB Notification: Performance of pre-optimization done (n=281): time 6.161e-06/1.399, allocations: 0 / 0.7183 GB, free: 141.1 MB / 474.8 MB Notification: Performance of matching and sorting (n=374): time 0.2224/1.621, allocations: 75.12 MB / 0.7916 GB, free: 66.4 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/1.621, allocations: 376.4 kB / 0.792 GB, free: 65.96 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008847/1.63, allocations: 6.381 MB / 0.7982 GB, free: 59.58 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001104/1.631, allocations: 85.7 kB / 0.7983 GB, free: 59.49 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002785/1.634, allocations: 4.754 MB / 0.803 GB, free: 54.75 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002018/1.636, allocations: 1.381 MB / 0.8043 GB, free: 53.38 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008238/1.637, allocations: 188.6 kB / 0.8045 GB, free: 53.2 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0004065/1.637, allocations: 0.7069 MB / 0.8052 GB, free: 52.48 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007247/1.645, allocations: 5.953 MB / 0.811 GB, free: 46.52 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01028/1.655, allocations: 10.99 MB / 0.8217 GB, free: 33.16 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02009/1.675, allocations: 17.9 MB / 0.8392 GB, free: 13.11 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001483/1.675, allocations: 52 kB / 0.8393 GB, free: 13.05 MB / 474.8 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.2572/1.932, allocations: 23.27 MB / 0.862 GB, free: 170 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001562/1.933, allocations: 78.38 kB / 0.8621 GB, free: 170 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003/1.933, allocations: 171.3 kB / 0.8622 GB, free: 170 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0207/1.954, allocations: 7.508 MB / 0.8695 GB, free: 169.3 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007718/1.961, allocations: 2.189 MB / 0.8717 GB, free: 169.2 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04199/2.003, allocations: 35.57 MB / 0.9064 GB, free: 142.2 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008034/2.011, allocations: 0.747 MB / 0.9071 GB, free: 141.4 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001712/2.013, allocations: 0.5285 MB / 0.9077 GB, free: 140.9 MB / 474.8 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.006195/2.019, allocations: 3.44 MB / 0.911 GB, free: 137.6 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001332/2.021, allocations: 0.5734 MB / 0.9116 GB, free: 137.4 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02908/2.05, allocations: 16.96 MB / 0.9281 GB, free: 120.4 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.205e-05/2.05, allocations: 45.48 kB / 0.9282 GB, free: 120.4 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.121e-05/2.05, allocations: 20 kB / 0.9282 GB, free: 120.3 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.462e-05/2.05, allocations: 15.94 kB / 0.9282 GB, free: 120.3 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05258/2.103, allocations: 32.17 MB / 0.9596 GB, free: 87.88 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.514e-05/2.103, allocations: 2.719 kB / 0.9596 GB, free: 87.88 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003124/2.106, allocations: 0.6082 MB / 0.9602 GB, free: 87.27 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01869/2.125, allocations: 7.146 MB / 0.9672 GB, free: 80.17 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001029/2.126, allocations: 60 kB / 0.9673 GB, free: 80.11 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04001/2.166, allocations: 33.88 MB / 1 GB, free: 46.05 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/2.166, allocations: 7.938 kB / 1 GB, free: 46.04 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03734/2.203, allocations: 24.58 MB / 1.024 GB, free: 21.45 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004228/2.207, allocations: 1.669 MB / 1.026 GB, free: 19.75 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001798/2.209, allocations: 67.98 kB / 1.026 GB, free: 19.68 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004513/2.214, allocations: 448.6 kB / 1.026 GB, free: 19.25 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001183/2.215, allocations: 250.6 kB / 1.027 GB, free: 19 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003703/2.215, allocations: 88 kB / 1.027 GB, free: 18.91 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.2216/2.437, allocations: 4.05 MB / 1.031 GB, free: 166.7 MB / 474.8 MB Notification: Performance of sort global known variables: time 3.81e-07/2.437, allocations: 1.531 kB / 1.031 GB, free: 166.7 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01194/2.449, allocations: 2.292 MB / 1.033 GB, free: 166.7 MB / 474.8 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.0013/2.45, allocations: 273.3 kB / 1.033 GB, free: 166.7 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.02282/2.473, allocations: 14.82 MB / 1.048 GB, free: 163.5 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.406e-05/2.473, allocations: 5.375 kB / 1.048 GB, free: 163.5 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01011/2.483, allocations: 6.689 MB / 1.054 GB, free: 160.6 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00821/2.492, allocations: 0.8288 MB / 1.055 GB, free: 160.3 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03296/2.525, allocations: 23.42 MB / 1.078 GB, free: 143.1 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006644/2.531, allocations: 5.228 MB / 1.083 GB, free: 139.1 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002661/2.534, allocations: 442.7 kB / 1.083 GB, free: 138.7 MB / 474.8 MB Notification: Performance of SimCode: time 1.323e-06/2.534, allocations: 0 / 1.083 GB, free: 138.7 MB / 474.8 MB Notification: Performance of Templates: time 0.4442/2.978, allocations: 208 MB / 1.287 GB, free: 96.12 MB / 474.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches