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.0008842/0.0008842, allocations: 85.72 kB / 16.31 MB, free: 6.453 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.0008813/0.0008815, allocations: 181.8 kB / 17.21 MB, free: 6.328 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.537/1.537, allocations: 205.4 MB / 223.4 MB, free: 5.59 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.0005042/0.0005042, allocations: 14.66 kB / 280.1 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3005/0.301, allocations: 47.59 MB / 327.7 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.06611/0.3672, allocations: 68.42 MB / 396.2 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04222/0.4095, allocations: 14.31 MB / 410.5 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02009/0.4296, allocations: 335.1 kB / 410.8 MB, free: 232 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01728/0.4469, allocations: 3.573 MB / 414.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03502/0.482, allocations: 10.47 MB / 424.8 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006675/0.4887, allocations: 0.9948 MB / 425.8 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.3539/0.8426, allocations: 51.71 MB / 477.5 MB, free: 33.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01041/0.853, allocations: 6.621 MB / 484.2 MB, free: 32.89 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006538/0.8596, allocations: 2.03 MB / 486.2 MB, free: 32.89 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00627/0.8659, allocations: 3.172 MB / 489.4 MB, free: 32.87 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001396/0.8673, allocations: 217.6 kB / 489.6 MB, free: 32.87 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004113/0.8715, allocations: 1.085 MB / 490.7 MB, free: 32.87 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003736/0.8752, allocations: 2.614 MB / 493.3 MB, free: 32.01 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001942/0.8772, allocations: 1.216 MB / 494.5 MB, free: 31.58 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00722/0.8844, allocations: 7.952 MB / 0.4907 GB, free: 24.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.877e-06/0.8845, allocations: 3.984 kB / 0.4907 GB, free: 24.67 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.8845, allocations: 0 / 0.4907 GB, free: 24.67 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002266/0.8847, allocations: 0 / 0.4907 GB, free: 24.67 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.01385/0.8986, allocations: 6.401 MB / 0.4969 GB, free: 18.76 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.968e-05/0.8986, allocations: 8.031 kB / 0.4969 GB, free: 18.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01285/0.9115, allocations: 3.247 MB / 0.5001 GB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01042/0.9219, allocations: 4.787 MB / 0.5048 GB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002243/0.9222, allocations: 336 kB / 0.5051 GB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001408/0.9236, allocations: 466.1 kB / 0.5055 GB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0274/0.9511, allocations: 14.56 MB / 0.5198 GB, free: 344 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000492/0.9516, allocations: 79.02 kB / 0.5198 GB, free: 292 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002395/0.954, allocations: 212.9 kB / 0.52 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00525/0.9593, allocations: 2.827 MB / 0.5228 GB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03/0.9893, allocations: 13.19 MB / 0.5357 GB, free: 4.559 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1039/1.093, allocations: 58.5 MB / 0.5928 GB, free: 1.129 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01951/1.113, allocations: 7.729 MB / 0.6004 GB, free: 9.266 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008028/1.121, allocations: 5.04 MB / 0.6053 GB, free: 4.211 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02734/1.148, allocations: 12.8 MB / 0.6178 GB, free: 7.371 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.971e-05/1.148, allocations: 68.66 kB / 0.6178 GB, free: 7.293 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 7.885e-06/1.148, allocations: 2.906 kB / 0.6178 GB, free: 7.293 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 2.15/3.299, allocations: 407.2 MB / 1.016 GB, free: 178.4 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/3.299, allocations: 270.7 kB / 1.016 GB, free: 178.1 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01144/3.311, allocations: 5.468 MB / 1.021 GB, free: 176.4 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002807/3.313, allocations: 109.4 kB / 1.021 GB, free: 176.3 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002836/3.316, allocations: 3.937 MB / 1.025 GB, free: 173.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003486/3.32, allocations: 2.011 MB / 1.027 GB, free: 171.7 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001309/3.321, allocations: 196.4 kB / 1.027 GB, free: 171.6 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0004137/3.322, allocations: 0.7174 MB / 1.028 GB, free: 171 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01379/3.335, allocations: 11.03 MB / 1.039 GB, free: 165.3 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01754/3.353, allocations: 15.2 MB / 1.054 GB, free: 152.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01695/3.37, allocations: 12.89 MB / 1.066 GB, free: 139.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001428/3.37, allocations: 40 kB / 1.066 GB, free: 139.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5246/3.895, allocations: 141 MB / 1.204 GB, free: 159.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.809e-05/3.895, allocations: 63.75 kB / 1.204 GB, free: 159.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001911/3.895, allocations: 139 kB / 1.204 GB, free: 159.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07294/3.968, allocations: 34.8 MB / 1.238 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005276/3.973, allocations: 1.571 MB / 1.24 GB, free: 143.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5163/4.49, allocations: 190.5 MB / 1.426 GB, free: 130.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01235/4.502, allocations: 1.717 MB / 1.427 GB, free: 129.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002924/4.505, allocations: 0.5394 MB / 1.428 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.008822/4.514, allocations: 3.099 MB / 1.431 GB, free: 126.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002861/4.517, allocations: 0.5756 MB / 1.431 GB, free: 126.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5431/5.06, allocations: 136.6 MB / 1.565 GB, free: 154.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001066/5.06, allocations: 57.03 kB / 1.565 GB, free: 154.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000218/5.06, allocations: 58.7 kB / 1.565 GB, free: 154.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001547/5.06, allocations: 31.66 kB / 1.565 GB, free: 154.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5865/5.647, allocations: 206.1 MB / 1.766 GB, free: 145.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.964e-05/5.647, allocations: 7.844 kB / 1.766 GB, free: 145.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001626/5.649, allocations: 329 kB / 1.767 GB, free: 145.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07057/5.719, allocations: 33.9 MB / 1.8 GB, free: 126.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002308/5.722, allocations: 103.5 kB / 1.8 GB, free: 126.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4575/6.179, allocations: 173.4 MB / 1.969 GB, free: 120.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.124e-06/6.179, allocations: 13.34 kB / 1.969 GB, free: 120.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5474/6.727, allocations: 152.4 MB / 2.118 GB, free: 131.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008099/6.735, allocations: 3.019 MB / 2.121 GB, free: 129.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003516/6.738, allocations: 95.03 kB / 2.121 GB, free: 129.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009222/6.748, allocations: 1.495 MB / 2.122 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003535/6.751, allocations: 0.4883 MB / 2.123 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001116/6.752, allocations: 140.6 kB / 2.123 GB, free: 127.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005527/6.758, allocations: 3.469 MB / 2.126 GB, free: 124.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.61e-07/6.758, allocations: 0 / 2.126 GB, free: 124.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01674/6.775, allocations: 3.861 MB / 2.13 GB, free: 120.7 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.001879/6.776, allocations: 246.3 kB / 2.13 GB, free: 120.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05414/6.831, allocations: 33.66 MB / 2.163 GB, free: 86.88 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.336e-05/6.831, allocations: 1.781 kB / 2.163 GB, free: 86.88 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03647/6.867, allocations: 20.51 MB / 2.183 GB, free: 66.36 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008216/6.875, allocations: 0.7476 MB / 2.184 GB, free: 65.62 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0415/6.917, allocations: 29.73 MB / 2.213 GB, free: 35.95 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.219/7.136, allocations: 5.107 MB / 2.218 GB, free: 148.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00571/7.142, allocations: 2.058 MB / 2.22 GB, free: 148.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009352/7.143, allocations: 315.3 kB / 2.22 GB, free: 148.5 MB / 478.1 MB Notification: Performance of SimCode: time 1.473e-06/7.143, allocations: 0 / 2.22 GB, free: 148.5 MB / 478.1 MB Notification: Performance of Templates: time 0.5561/7.699, allocations: 257.3 MB / 2.472 GB, free: 83.46 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (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)