Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_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_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 114.7 kB / 17.28 MB, free: 6.211 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.001007/0.001007, allocations: 189.3 kB / 18.2 MB, free: 5.293 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.376/1.376, allocations: 205.1 MB / 224.1 MB, free: 12.45 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.001191/0.001191, allocations: 47.94 kB / 280.2 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1152, allocations: 46.63 MB / 326.8 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2618/0.3771, allocations: 75.42 MB / 402.2 MB, free: 8.672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03709/0.4142, allocations: 14.88 MB / 417.1 MB, free: 3.207 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01706/0.4313, allocations: 336.6 kB / 417.4 MB, free: 3.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007516/0.4389, allocations: 4.285 MB / 421.7 MB, free: 1.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006951/0.4459, allocations: 2.363 MB / 424.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002903/0.4488, allocations: 1.086 MB / 425.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01664/0.4655, allocations: 7.832 MB / 433 MB, free: 10 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009988/0.4755, allocations: 5.601 MB / 438.6 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006758/0.4823, allocations: 2.542 MB / 441.1 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006701/0.489, allocations: 3.746 MB / 444.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00175/0.4908, allocations: 0.5039 MB / 445.4 MB, free: 14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004094/0.4949, allocations: 1.514 MB / 446.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004177/0.4991, allocations: 3.009 MB / 449.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006329/0.5055, allocations: 3.392 MB / 453.3 MB, free: 6.129 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01807/0.5236, allocations: 10.14 MB / 463.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.273e-05/0.5237, allocations: 0 / 463.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.055e-06/0.5237, allocations: 4 kB / 463.4 MB, free: 12.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005542/0.5243, allocations: 0 / 463.4 MB, free: 12.22 MB / 366.1 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.03004/0.5543, allocations: 7.624 MB / 471.1 MB, free: 4.645 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.708e-05/0.5544, allocations: 8.031 kB / 471.1 MB, free: 4.637 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02198/0.5764, allocations: 3.185 MB / 474.2 MB, free: 1.441 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01595/0.5924, allocations: 4.887 MB / 479.1 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004883/0.5929, allocations: 335.9 kB / 479.5 MB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002944/0.5959, allocations: 466.8 kB / 479.9 MB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03474/0.6307, allocations: 14.56 MB / 494.5 MB, free: 12.49 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002362/0.6309, allocations: 79.27 kB / 494.6 MB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006876/0.6316, allocations: 215 kB / 494.8 MB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005118/0.6368, allocations: 2.836 MB / 497.6 MB, free: 9.414 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02934/0.6661, allocations: 13.22 MB / 0.4988 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2732/0.9394, allocations: 58.53 MB / 0.556 GB, free: 130.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01875/0.9582, allocations: 7.735 MB / 0.5636 GB, free: 129.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005457/0.9637, allocations: 5.053 MB / 0.5685 GB, free: 127.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01709/0.9808, allocations: 12.8 MB / 0.581 GB, free: 121.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.987e-05/0.9809, allocations: 67.36 kB / 0.5811 GB, free: 121.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 5.159e-06/0.9809, allocations: 3.719 kB / 0.5811 GB, free: 121.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.933/2.914, allocations: 411.5 MB / 0.9829 GB, free: 104.7 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/2.914, allocations: 269.3 kB / 0.9831 GB, free: 104.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008532/2.923, allocations: 5.501 MB / 0.9885 GB, free: 99.13 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002883/2.926, allocations: 109.7 kB / 0.9886 GB, free: 99.02 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003012/2.929, allocations: 3.943 MB / 0.9925 GB, free: 95.69 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003472/2.932, allocations: 2.006 MB / 0.9944 GB, free: 93.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004293/2.937, allocations: 2.182 MB / 0.9966 GB, free: 91.51 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.756e-05/2.937, allocations: 305.1 kB / 0.9968 GB, free: 91.21 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01294/2.95, allocations: 11.07 MB / 1.008 GB, free: 80.13 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01555/2.965, allocations: 15.24 MB / 1.023 GB, free: 63.05 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02902/2.994, allocations: 27.46 MB / 1.049 GB, free: 33.78 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001374/2.995, allocations: 40 kB / 1.049 GB, free: 33.74 MB / 462.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5677/3.562, allocations: 141 MB / 1.187 GB, free: 61.48 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001231/3.562, allocations: 64.62 kB / 1.187 GB, free: 61.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002135/3.563, allocations: 140 kB / 1.187 GB, free: 61.28 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07606/3.639, allocations: 34.73 MB / 1.221 GB, free: 26.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005445/3.644, allocations: 1.567 MB / 1.223 GB, free: 25.04 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7367/4.381, allocations: 203.6 MB / 1.422 GB, free: 129.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0148/4.396, allocations: 1.716 MB / 1.423 GB, free: 129 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002616/4.398, allocations: 0.5417 MB / 1.424 GB, free: 128.9 MB / 462.1 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,164,40.5%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.007423/4.406, allocations: 3.1 MB / 1.427 GB, free: 127.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002256/4.408, allocations: 0.5765 MB / 1.427 GB, free: 127.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.523/4.931, allocations: 136.7 MB / 1.561 GB, free: 138.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001269/4.931, allocations: 59.97 kB / 1.561 GB, free: 138.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002352/4.932, allocations: 61.34 kB / 1.561 GB, free: 138.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001747/4.932, allocations: 26.62 kB / 1.561 GB, free: 138.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5708/5.503, allocations: 206.2 MB / 1.762 GB, free: 133.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-05/5.503, allocations: 9.75 kB / 1.762 GB, free: 133.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00151/5.504, allocations: 330.8 kB / 1.763 GB, free: 133.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06867/5.573, allocations: 33.46 MB / 1.795 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001852/5.575, allocations: 108 kB / 1.796 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5003/6.075, allocations: 186.2 MB / 1.977 GB, free: 96.16 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.388e-05/6.075, allocations: 11.75 kB / 1.977 GB, free: 96.16 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5148/6.59, allocations: 152.5 MB / 2.126 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008376/6.598, allocations: 3.003 MB / 2.129 GB, free: 102.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003495/6.602, allocations: 97.12 kB / 2.129 GB, free: 102.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01046/6.612, allocations: 1.486 MB / 2.131 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004914/6.617, allocations: 496.2 kB / 2.131 GB, free: 100.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001888/6.619, allocations: 149.5 kB / 2.131 GB, free: 100.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005455/6.625, allocations: 3.496 MB / 2.135 GB, free: 98.24 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.21e-07/6.625, allocations: 2.438 kB / 2.135 GB, free: 98.24 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01457/6.639, allocations: 3.864 MB / 2.139 GB, free: 94.7 MB / 462.1 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001845/6.641, allocations: 246.4 kB / 2.139 GB, free: 94.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.06132/6.703, allocations: 38.86 MB / 2.177 GB, free: 55.77 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.229e-05/6.703, allocations: 4 kB / 2.177 GB, free: 55.76 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03692/6.74, allocations: 20.56 MB / 2.197 GB, free: 35.23 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006311/6.746, allocations: 0.775 MB / 2.198 GB, free: 34.47 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2396/6.985, allocations: 30.48 MB / 2.227 GB, free: 126.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01064/6.996, allocations: 5.117 MB / 2.232 GB, free: 125.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004761/7.001, allocations: 2.059 MB / 2.234 GB, free: 125.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000748/7.002, allocations: 310.3 kB / 2.235 GB, free: 125.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.192e-06/7.002, allocations: 0 / 2.235 GB, free: 125.2 MB / 462.1 MB Notification: Performance of Templates: time 0.5472/7.549, allocations: 281 MB / 2.509 GB, free: 21.71 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches