Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001305/0.001306, allocations: 94.97 kB / 16.3 MB, free: 5.996 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.001283/0.001283, allocations: 183.8 kB / 17.2 MB, free: 5.914 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.458/1.458, allocations: 205.4 MB / 223.4 MB, free: 5.531 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.0005241/0.0005242, allocations: 16 kB / 280.1 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2735, allocations: 47.58 MB / 327.7 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.06638/0.34, allocations: 64.48 MB / 392.2 MB, free: 2.891 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04635/0.3864, allocations: 14.99 MB / 407.2 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01819/0.4047, allocations: 335.1 kB / 407.5 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.013/0.4177, allocations: 3.223 MB / 410.7 MB, free: 296 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03661/0.4544, allocations: 9.253 MB / 420 MB, free: 7.012 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006405/0.4608, allocations: 0.9869 MB / 421 MB, free: 6.023 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.3016/0.7625, allocations: 40.36 MB / 461.3 MB, free: 39.42 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009035/0.7716, allocations: 6.561 MB / 467.9 MB, free: 38.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00301/0.7746, allocations: 1.675 MB / 469.6 MB, free: 38.9 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003311/0.778, allocations: 2.243 MB / 471.8 MB, free: 38.89 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008892/0.7789, allocations: 215.6 kB / 472 MB, free: 38.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00234/0.7812, allocations: 1.071 MB / 473.1 MB, free: 38.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002343/0.7836, allocations: 2.433 MB / 475.5 MB, free: 38.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001738/0.7854, allocations: 1.231 MB / 476.8 MB, free: 38.85 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01043/0.7958, allocations: 8.145 MB / 484.9 MB, free: 36.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.7958, allocations: 0 / 484.9 MB, free: 36.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.406e-06/0.7958, allocations: 0 / 484.9 MB, free: 36.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003853/0.7962, allocations: 0 / 484.9 MB, free: 36.25 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.01779/0.814, allocations: 6.952 MB / 491.9 MB, free: 32.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.8141, allocations: 10.09 kB / 491.9 MB, free: 32.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05762/0.8717, allocations: 11.2 MB / 0.4913 GB, free: 24.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01502/0.8868, allocations: 5.523 MB / 0.4967 GB, free: 20.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002345/0.887, allocations: 341.1 kB / 0.497 GB, free: 20.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001836/0.8889, allocations: 464.3 kB / 0.4974 GB, free: 20.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02804/0.9169, allocations: 14.66 MB / 0.5117 GB, free: 8.867 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002484/0.9172, allocations: 78.7 kB / 0.5118 GB, free: 8.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006434/0.9179, allocations: 211.5 kB / 0.512 GB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004616/0.9225, allocations: 2.834 MB / 0.5148 GB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02747/0.95, allocations: 13.22 MB / 0.5277 GB, free: 13.03 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09357/1.044, allocations: 58.49 MB / 0.5848 GB, free: 12.47 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02049/1.064, allocations: 8.005 MB / 0.5926 GB, free: 4.461 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0261/1.09, allocations: 12.8 MB / 0.6051 GB, free: 7.617 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.539e-05/1.09, allocations: 67.7 kB / 0.6052 GB, free: 7.543 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 7.104e-06/1.09, allocations: 0 / 0.6052 GB, free: 7.543 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.333/3.423, allocations: 409.2 MB / 1.005 GB, free: 171.6 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001561/3.423, allocations: 267.3 kB / 1.005 GB, free: 171.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008992/3.432, allocations: 5.891 MB / 1.011 GB, free: 169.7 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002412/3.435, allocations: 122.6 kB / 1.011 GB, free: 169.6 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002815/3.437, allocations: 4.005 MB / 1.015 GB, free: 167.2 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003743/3.441, allocations: 2.006 MB / 1.017 GB, free: 165.7 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001282/3.443, allocations: 186.8 kB / 1.017 GB, free: 165.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0004189/3.443, allocations: 0.6972 MB / 1.018 GB, free: 165.1 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01479/3.458, allocations: 10.84 MB / 1.028 GB, free: 160.9 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01664/3.474, allocations: 14.92 MB / 1.043 GB, free: 151.3 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01736/3.492, allocations: 12.68 MB / 1.055 GB, free: 146 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001162/3.492, allocations: 42.38 kB / 1.055 GB, free: 146 MB / 478.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5838/4.076, allocations: 140.3 MB / 1.192 GB, free: 156.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001168/4.076, allocations: 68.33 kB / 1.192 GB, free: 156.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001858/4.076, allocations: 138.9 kB / 1.193 GB, free: 156.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08206/4.158, allocations: 34.64 MB / 1.226 GB, free: 151.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005423/4.164, allocations: 1.48 MB / 1.228 GB, free: 151.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4638/4.627, allocations: 197.5 MB / 1.421 GB, free: 136.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01536/4.643, allocations: 1.712 MB / 1.422 GB, free: 135.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005529/4.648, allocations: 0.521 MB / 1.423 GB, free: 135.9 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * 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 (783): * Single equations (assignments): 776 * 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.01303/4.662, allocations: 3.086 MB / 1.426 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00356/4.665, allocations: 0.5876 MB / 1.426 GB, free: 134.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5526/5.218, allocations: 136.4 MB / 1.56 GB, free: 150.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.976e-05/5.218, allocations: 64.5 kB / 1.56 GB, free: 150.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001572/5.218, allocations: 58 kB / 1.56 GB, free: 150.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001296/5.218, allocations: 28.94 kB / 1.56 GB, free: 150.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6242/5.842, allocations: 206.2 MB / 1.761 GB, free: 147.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.766e-05/5.842, allocations: 7.688 kB / 1.761 GB, free: 147.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001518/5.844, allocations: 327.5 kB / 1.761 GB, free: 147.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07417/5.918, allocations: 33.75 MB / 1.794 GB, free: 141.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001763/5.92, allocations: 101.7 kB / 1.794 GB, free: 141.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4301/6.35, allocations: 180.5 MB / 1.971 GB, free: 126 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.999e-06/6.35, allocations: 11.12 kB / 1.971 GB, free: 126 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5246/6.875, allocations: 153 MB / 2.12 GB, free: 139 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008587/6.883, allocations: 3.022 MB / 2.123 GB, free: 138.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002772/6.886, allocations: 95.53 kB / 2.123 GB, free: 138.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00976/6.896, allocations: 1.484 MB / 2.125 GB, free: 137.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003734/6.9, allocations: 0.4905 MB / 2.125 GB, free: 137.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001035/6.901, allocations: 146.3 kB / 2.125 GB, free: 137.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005879/6.907, allocations: 3.817 MB / 2.129 GB, free: 135.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 9.42e-07/6.907, allocations: 0 / 2.129 GB, free: 135.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01466/6.921, allocations: 3.827 MB / 2.133 GB, free: 131.6 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.001587/6.923, allocations: 265.5 kB / 2.133 GB, free: 131.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0572/6.98, allocations: 33.35 MB / 2.166 GB, free: 98.07 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.207e-05/6.98, allocations: 4 kB / 2.166 GB, free: 98.07 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03943/7.02, allocations: 20.46 MB / 2.186 GB, free: 77.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007063/7.027, allocations: 0.7161 MB / 2.186 GB, free: 76.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04303/7.07, allocations: 29.6 MB / 2.215 GB, free: 47.36 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006724/7.077, allocations: 5.245 MB / 2.22 GB, free: 42.08 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005602/7.082, allocations: 2.081 MB / 2.222 GB, free: 40 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001061/7.083, allocations: 311.4 kB / 2.223 GB, free: 39.69 MB / 478.1 MB Notification: Performance of SimCode: time 1.052e-06/7.083, allocations: 0 / 2.223 GB, free: 39.69 MB / 478.1 MB Notification: Performance of Templates: time 0.7005/7.784, allocations: 258.1 MB / 2.475 GB, free: 98.38 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) Environment - environmentSimulation: