Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001029/0.001029, allocations: 179.5 kB / 16.41 MB, free: 5.703 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.397/1.397, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.0008988/0.0008994, allocations: 98 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003016/0.0003016, allocations: 8 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2159/0.2162, allocations: 47.57 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.04918/0.2655, allocations: 68.43 MB / 443 MB, free: 12.25 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03121/0.2967, allocations: 14.32 MB / 457.3 MB, free: 13.88 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01167/0.3084, allocations: 335.1 kB / 457.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009835/0.3183, allocations: 3.565 MB / 461.2 MB, free: 9.973 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02471/0.3431, allocations: 10.47 MB / 471.7 MB, free: 15.46 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004475/0.3475, allocations: 1.003 MB / 472.7 MB, free: 14.46 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.24/0.5875, allocations: 51.7 MB / 0.5121 GB, free: 30.61 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008461/0.596, allocations: 6.608 MB / 0.5185 GB, free: 30.07 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003396/0.5995, allocations: 2.039 MB / 0.5205 GB, free: 30.07 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003468/0.603, allocations: 3.162 MB / 0.5236 GB, free: 29.8 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007146/0.6037, allocations: 219.1 kB / 0.5238 GB, free: 29.66 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001991/0.6057, allocations: 1.089 MB / 0.5249 GB, free: 28.78 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001723/0.6074, allocations: 2.614 MB / 0.5274 GB, free: 26.89 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001038/0.6085, allocations: 1.218 MB / 0.5286 GB, free: 26.45 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00512/0.6136, allocations: 7.951 MB / 0.5364 GB, free: 19.55 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.6136, allocations: 0 / 0.5364 GB, free: 19.55 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.6136, allocations: 0 / 0.5364 GB, free: 19.55 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001892/0.6138, allocations: 4 kB / 0.5364 GB, free: 19.55 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.01154/0.6254, allocations: 6.4 MB / 0.5426 GB, free: 13.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.6254, allocations: 8.031 kB / 0.5426 GB, free: 13.63 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01417/0.6396, allocations: 3.252 MB / 0.5458 GB, free: 10.51 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01078/0.6505, allocations: 4.787 MB / 0.5505 GB, free: 7.043 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002575/0.6508, allocations: 338.2 kB / 0.5508 GB, free: 6.855 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00168/0.6525, allocations: 463.9 kB / 0.5513 GB, free: 6.559 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02516/0.6776, allocations: 14.56 MB / 0.5655 GB, free: 11.21 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002275/0.6779, allocations: 74.03 kB / 0.5655 GB, free: 11.17 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006474/0.6786, allocations: 217.8 kB / 0.5658 GB, free: 11.11 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005116/0.6837, allocations: 2.833 MB / 0.5685 GB, free: 8.73 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02696/0.7107, allocations: 13.19 MB / 0.5814 GB, free: 15.45 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0755/0.7862, allocations: 58.51 MB / 0.6385 GB, free: 11.73 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01728/0.8035, allocations: 7.726 MB / 0.6461 GB, free: 3.871 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006256/0.8099, allocations: 5.04 MB / 0.651 GB, free: 14.82 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01849/0.8284, allocations: 12.8 MB / 0.6635 GB, free: 1.977 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.516e-05/0.8285, allocations: 68.66 kB / 0.6636 GB, free: 1.898 MB / 474.7 MB Notification: Performance of pre-optimization done (n=326): time 6.372e-06/0.8285, allocations: 3.562 kB / 0.6636 GB, free: 1.898 MB / 474.7 MB Notification: Performance of matching and sorting (n=572): time 2.033/2.861, allocations: 407.3 MB / 1.061 GB, free: 172.8 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/2.861, allocations: 267.7 kB / 1.062 GB, free: 172.6 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007374/2.869, allocations: 5.462 MB / 1.067 GB, free: 169.9 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001962/2.871, allocations: 113.2 kB / 1.067 GB, free: 169.8 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002465/2.873, allocations: 3.936 MB / 1.071 GB, free: 167 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002873/2.876, allocations: 2.01 MB / 1.073 GB, free: 165.3 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001174/2.877, allocations: 194.4 kB / 1.073 GB, free: 165.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003937/2.878, allocations: 0.7183 MB / 1.074 GB, free: 164.6 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01311/2.891, allocations: 11.02 MB / 1.084 GB, free: 158.9 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01566/2.907, allocations: 15.2 MB / 1.099 GB, free: 143.2 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01666/2.923, allocations: 12.89 MB / 1.112 GB, free: 130.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001197/2.923, allocations: 41.97 kB / 1.112 GB, free: 130.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5084/3.432, allocations: 140.9 MB / 1.25 GB, free: 155.7 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.776e-05/3.432, allocations: 69.97 kB / 1.25 GB, free: 155.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001239/3.432, allocations: 137.8 kB / 1.25 GB, free: 155.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07505/3.507, allocations: 34.8 MB / 1.284 GB, free: 134 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004732/3.512, allocations: 1.566 MB / 1.285 GB, free: 132.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4169/3.929, allocations: 190.5 MB / 1.471 GB, free: 118.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0122/3.941, allocations: 1.727 MB / 1.473 GB, free: 117.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001995/3.943, allocations: 0.536 MB / 1.473 GB, free: 117.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (840): * Single equations (assignments): 833 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(20,40.5%) 164,(17,42.9%) 101,(2,100.0%) 7} * Non-linear torn systems: 1 {12 76} Notification: Performance of prepare postOptimizeDAE: time 0.005913/3.949, allocations: 3.103 MB / 1.477 GB, free: 114.7 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001801/3.951, allocations: 0.5769 MB / 1.477 GB, free: 114.4 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4673/4.418, allocations: 136.6 MB / 1.61 GB, free: 146.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.262e-05/4.418, allocations: 59.83 kB / 1.611 GB, free: 146.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000153/4.418, allocations: 55.88 kB / 1.611 GB, free: 146.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001095/4.418, allocations: 30.58 kB / 1.611 GB, free: 146.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.523/4.942, allocations: 206.1 MB / 1.812 GB, free: 135.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-05/4.942, allocations: 10.95 kB / 1.812 GB, free: 135.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0014/4.943, allocations: 330.8 kB / 1.812 GB, free: 135.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06915/5.012, allocations: 33.9 MB / 1.845 GB, free: 112 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001303/5.014, allocations: 101.2 kB / 1.845 GB, free: 111.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3973/5.411, allocations: 173.4 MB / 2.015 GB, free: 104.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.426e-06/5.411, allocations: 11.75 kB / 2.015 GB, free: 104.2 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4927/5.904, allocations: 152.4 MB / 2.164 GB, free: 113.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006263/5.91, allocations: 3.017 MB / 2.167 GB, free: 111.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001739/5.912, allocations: 102.8 kB / 2.167 GB, free: 111.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008138/5.92, allocations: 1.482 MB / 2.168 GB, free: 110 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002582/5.922, allocations: 0.4912 MB / 2.169 GB, free: 109.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007586/5.923, allocations: 144.6 kB / 2.169 GB, free: 109.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004334/5.928, allocations: 3.466 MB / 2.172 GB, free: 107 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.6e-07/5.928, allocations: 4 kB / 2.172 GB, free: 107 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01141/5.939, allocations: 3.858 MB / 2.176 GB, free: 103.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (j1.phi,j1.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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(20,40.5%) 157,(16,51.6%) 99,(2,100.0%) 7} * Non-linear torn systems: 1 {12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.001273/5.94, allocations: 242.9 kB / 2.176 GB, free: 103.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.05285/5.993, allocations: 33.66 MB / 2.209 GB, free: 69.84 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/5.993, allocations: 2.953 kB / 2.209 GB, free: 69.84 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.03812/6.031, allocations: 20.5 MB / 2.229 GB, free: 49.33 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007636/6.039, allocations: 0.7474 MB / 2.23 GB, free: 48.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2376/6.277, allocations: 30.3 MB / 2.259 GB, free: 143.7 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006511/6.283, allocations: 5.076 MB / 2.264 GB, free: 142.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001356/6.285, allocations: 355.3 kB / 2.265 GB, free: 142.9 MB / 474.7 MB Notification: Performance of SimCode: time 1.082e-06/6.285, allocations: 0 / 2.265 GB, free: 142.9 MB / 474.7 MB Notification: Performance of Templates: time 0.4706/6.755, allocations: 255.1 MB / 2.514 GB, free: 68.99 MB / 474.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches