Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.0009059/0.000906, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009911/0.0009915, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.435/1.435, allocations: 205.4 MB / 222.1 MB, free: 5.637 MB / 174.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.0004874/0.0004874, allocations: 15.94 kB / 278.9 MB, free: 12.8 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.2675, allocations: 47.59 MB / 326.5 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.06353/0.3311, allocations: 68.43 MB / 394.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03781/0.369, allocations: 14.3 MB / 409.2 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01517/0.3842, allocations: 339.1 kB / 409.5 MB, free: 220 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0127/0.3969, allocations: 3.565 MB / 413.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03165/0.4286, allocations: 10.48 MB / 423.6 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005315/0.434, allocations: 1.018 MB / 424.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2948/0.7288, allocations: 51.69 MB / 476.3 MB, free: 33.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009896/0.7388, allocations: 6.61 MB / 482.9 MB, free: 32.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005002/0.7438, allocations: 2.032 MB / 484.9 MB, free: 32.89 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005877/0.7497, allocations: 3.167 MB / 488.1 MB, free: 32.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001232/0.751, allocations: 215.8 kB / 488.3 MB, free: 32.88 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003308/0.7543, allocations: 1.098 MB / 489.4 MB, free: 32.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002719/0.757, allocations: 2.609 MB / 492 MB, free: 31.99 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00186/0.7589, allocations: 1.215 MB / 493.2 MB, free: 31.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007812/0.7667, allocations: 7.954 MB / 0.4894 GB, free: 24.65 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.327e-06/0.7668, allocations: 0 / 0.4894 GB, free: 24.65 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.087e-05/0.7668, allocations: 0 / 0.4894 GB, free: 24.65 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000363/0.7672, allocations: 0 / 0.4894 GB, free: 24.65 MB / 382.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.01457/0.7817, allocations: 6.398 MB / 0.4957 GB, free: 18.74 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.651e-05/0.7818, allocations: 12.03 kB / 0.4957 GB, free: 18.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01347/0.7953, allocations: 3.247 MB / 0.4989 GB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00969/0.805, allocations: 4.793 MB / 0.5036 GB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002476/0.8053, allocations: 333.4 kB / 0.5039 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001973/0.8073, allocations: 466.7 kB / 0.5043 GB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02431/0.8316, allocations: 14.55 MB / 0.5185 GB, free: 320 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002238/0.8319, allocations: 76.45 kB / 0.5186 GB, free: 272 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006037/0.8325, allocations: 212.4 kB / 0.5188 GB, free: 212 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004984/0.8375, allocations: 2.838 MB / 0.5216 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02718/0.8647, allocations: 13.19 MB / 0.5345 GB, free: 4.535 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08196/0.9467, allocations: 58.51 MB / 0.5916 GB, free: 1.102 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01761/0.9644, allocations: 7.723 MB / 0.5991 GB, free: 9.242 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006558/0.971, allocations: 5.045 MB / 0.6041 GB, free: 4.188 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01858/0.9896, allocations: 12.8 MB / 0.6166 GB, free: 7.348 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.67e-05/0.9897, allocations: 74.19 kB / 0.6166 GB, free: 7.266 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 5.561e-06/0.9897, allocations: 0 / 0.6166 GB, free: 7.266 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 2.081/3.071, allocations: 407.3 MB / 1.014 GB, free: 178.3 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/3.071, allocations: 270.5 kB / 1.015 GB, free: 178.1 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007166/3.078, allocations: 5.457 MB / 1.02 GB, free: 176.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001737/3.08, allocations: 121.5 kB / 1.02 GB, free: 176.2 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002195/3.082, allocations: 3.937 MB / 1.024 GB, free: 173.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002916/3.085, allocations: 2.012 MB / 1.026 GB, free: 171.7 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001001/3.086, allocations: 193.4 kB / 1.026 GB, free: 171.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0004101/3.087, allocations: 0.7168 MB / 1.027 GB, free: 170.9 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01333/3.1, allocations: 11.03 MB / 1.037 GB, free: 165.3 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01761/3.118, allocations: 15.2 MB / 1.052 GB, free: 152.4 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01589/3.133, allocations: 12.88 MB / 1.065 GB, free: 139.7 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.721e-05/3.134, allocations: 40 kB / 1.065 GB, free: 139.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.515/3.649, allocations: 141 MB / 1.203 GB, free: 160.1 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.652e-05/3.649, allocations: 67.19 kB / 1.203 GB, free: 160.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001229/3.649, allocations: 136.6 kB / 1.203 GB, free: 160.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07481/3.724, allocations: 34.81 MB / 1.237 GB, free: 144.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005709/3.729, allocations: 1.564 MB / 1.238 GB, free: 143.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4545/4.184, allocations: 190.5 MB / 1.424 GB, free: 130.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01326/4.197, allocations: 1.724 MB / 1.426 GB, free: 129.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002414/4.2, allocations: 0.5351 MB / 1.427 GB, free: 129.2 MB / 478.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 (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.006722/4.206, allocations: 3.107 MB / 1.43 GB, free: 126.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001652/4.208, allocations: 0.5732 MB / 1.43 GB, free: 126.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5055/4.714, allocations: 136.6 MB / 1.564 GB, free: 153.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.429e-05/4.714, allocations: 59.03 kB / 1.564 GB, free: 153.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001431/4.714, allocations: 60.84 kB / 1.564 GB, free: 153.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.85e-05/4.714, allocations: 29.02 kB / 1.564 GB, free: 153.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.553/5.267, allocations: 206.1 MB / 1.765 GB, free: 145.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000109/5.267, allocations: 7.719 kB / 1.765 GB, free: 145.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001446/5.269, allocations: 334.1 kB / 1.765 GB, free: 145.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06898/5.338, allocations: 33.91 MB / 1.798 GB, free: 126.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002267/5.34, allocations: 99.98 kB / 1.799 GB, free: 126.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4009/5.741, allocations: 173.4 MB / 1.968 GB, free: 119.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/5.741, allocations: 11.28 kB / 1.968 GB, free: 119.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5796/6.32, allocations: 152.4 MB / 2.117 GB, free: 130.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005933/6.326, allocations: 3.018 MB / 2.12 GB, free: 129.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002098/6.329, allocations: 100.9 kB / 2.12 GB, free: 129 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008422/6.337, allocations: 1.487 MB / 2.121 GB, free: 127.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003057/6.34, allocations: 497.4 kB / 2.122 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008165/6.341, allocations: 142.4 kB / 2.122 GB, free: 127.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005064/6.346, allocations: 3.473 MB / 2.125 GB, free: 124.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.21e-07/6.346, allocations: 0 / 2.125 GB, free: 124.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01375/6.36, allocations: 3.855 MB / 2.129 GB, free: 120.4 MB / 478.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 (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.001486/6.361, allocations: 249.7 kB / 2.129 GB, free: 120.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05206/6.413, allocations: 33.66 MB / 2.162 GB, free: 86.61 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.055e-05/6.413, allocations: 0 / 2.162 GB, free: 86.61 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03775/6.451, allocations: 20.5 MB / 2.182 GB, free: 66.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005637/6.457, allocations: 0.7554 MB / 2.183 GB, free: 65.36 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03614/6.493, allocations: 29.73 MB / 2.212 GB, free: 35.69 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2155/6.709, allocations: 5.119 MB / 2.217 GB, free: 149 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005823/6.715, allocations: 2.053 MB / 2.219 GB, free: 148.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009204/6.715, allocations: 309.3 kB / 2.219 GB, free: 148.9 MB / 478.1 MB Notification: Performance of SimCode: time 7.92e-07/6.715, allocations: 0 / 2.219 GB, free: 148.9 MB / 478.1 MB Notification: Performance of Templates: time 0.4977/7.213, allocations: 257.3 MB / 2.47 GB, free: 83.15 MB / 478.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1)