Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001044/0.001044, allocations: 100.3 kB / 15.05 MB, free: 1.105 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.0009927/0.0009928, allocations: 177.3 kB / 15.95 MB, free: 216 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.491/1.491, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.0004926/0.0004928, allocations: 8 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3122/0.3127, allocations: 47.59 MB / 326.5 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.06046/0.3732, allocations: 64.47 MB / 390.9 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03905/0.4123, allocations: 15 MB / 405.9 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0171/0.4295, allocations: 335.1 kB / 406.2 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01327/0.4428, allocations: 3.223 MB / 409.5 MB, free: 284 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03489/0.4777, allocations: 9.253 MB / 418.7 MB, free: 7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005931/0.4837, allocations: 0.9908 MB / 419.7 MB, free: 6.008 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.3115/0.7952, allocations: 39.7 MB / 459.4 MB, free: 39.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01188/0.8072, allocations: 6.572 MB / 466 MB, free: 38.89 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004364/0.8116, allocations: 1.674 MB / 467.7 MB, free: 38.89 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004612/0.8162, allocations: 2.237 MB / 469.9 MB, free: 38.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001896/0.8182, allocations: 216.3 kB / 470.1 MB, free: 38.88 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003722/0.8219, allocations: 1.077 MB / 471.2 MB, free: 38.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004232/0.8262, allocations: 2.427 MB / 473.6 MB, free: 38.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003806/0.83, allocations: 1.233 MB / 474.8 MB, free: 38.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01431/0.8443, allocations: 8.139 MB / 483 MB, free: 36.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.8444, allocations: 1.969 kB / 483 MB, free: 36.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.68e-06/0.8444, allocations: 0 / 483 MB, free: 36.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005253/0.845, allocations: 3.094 kB / 483 MB, free: 36.36 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.02061/0.8656, allocations: 6.953 MB / 489.9 MB, free: 32.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.8656, allocations: 9.781 kB / 490 MB, free: 32.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05911/0.9248, allocations: 11.2 MB / 0.4894 GB, free: 25.31 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01532/0.9401, allocations: 5.521 MB / 0.4948 GB, free: 21.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004011/0.9406, allocations: 337.1 kB / 0.4951 GB, free: 21.1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002837/0.9435, allocations: 458.3 kB / 0.4956 GB, free: 20.81 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03465/0.9781, allocations: 14.68 MB / 0.5099 GB, free: 9.348 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004609/0.9786, allocations: 70.05 kB / 0.51 GB, free: 9.309 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002511/0.9812, allocations: 219.5 kB / 0.5102 GB, free: 9.246 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005573/0.9868, allocations: 2.83 MB / 0.5129 GB, free: 6.867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03253/1.019, allocations: 13.22 MB / 0.5258 GB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1062/1.126, allocations: 58.5 MB / 0.583 GB, free: 12.95 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02123/1.147, allocations: 7.991 MB / 0.5908 GB, free: 5.023 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03124/1.178, allocations: 12.8 MB / 0.6033 GB, free: 8.18 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.342e-05/1.178, allocations: 67.7 kB / 0.6033 GB, free: 8.105 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 8.176e-06/1.178, allocations: 0 / 0.6033 GB, free: 8.105 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.27/3.448, allocations: 409.2 MB / 1.003 GB, free: 171.4 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001545/3.449, allocations: 270.8 kB / 1.003 GB, free: 171.2 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009731/3.458, allocations: 5.887 MB / 1.009 GB, free: 169.7 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002172/3.46, allocations: 115.8 kB / 1.009 GB, free: 169.6 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00282/3.463, allocations: 4.013 MB / 1.013 GB, free: 167.1 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003033/3.466, allocations: 2.004 MB / 1.015 GB, free: 165.6 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001328/3.468, allocations: 185.3 kB / 1.015 GB, free: 165.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0004282/3.468, allocations: 0.703 MB / 1.016 GB, free: 165 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01414/3.482, allocations: 10.84 MB / 1.026 GB, free: 160.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01624/3.499, allocations: 14.91 MB / 1.041 GB, free: 151.3 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01577/3.514, allocations: 12.68 MB / 1.053 GB, free: 146 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.389e-05/3.515, allocations: 37.59 kB / 1.053 GB, free: 146 MB / 478.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5582/4.073, allocations: 140.3 MB / 1.19 GB, free: 156.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/4.073, allocations: 67.09 kB / 1.19 GB, free: 156.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001668/4.073, allocations: 137 kB / 1.191 GB, free: 156.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08213/4.155, allocations: 34.65 MB / 1.224 GB, free: 150.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004997/4.16, allocations: 1.479 MB / 1.226 GB, free: 150.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.478/4.638, allocations: 197.5 MB / 1.419 GB, free: 134.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0161/4.654, allocations: 1.713 MB / 1.42 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003277/4.658, allocations: 0.5189 MB / 1.421 GB, free: 134.5 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.009883/4.668, allocations: 3.089 MB / 1.424 GB, free: 133.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003303/4.671, allocations: 0.581 MB / 1.425 GB, free: 133.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5538/5.225, allocations: 136.4 MB / 1.558 GB, free: 150.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001033/5.225, allocations: 65.11 kB / 1.558 GB, free: 150.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001862/5.225, allocations: 60.22 kB / 1.558 GB, free: 150.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001384/5.225, allocations: 27.23 kB / 1.558 GB, free: 150.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6032/5.829, allocations: 206.2 MB / 1.759 GB, free: 146.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.232e-05/5.829, allocations: 4.531 kB / 1.759 GB, free: 146.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001609/5.83, allocations: 331.6 kB / 1.76 GB, free: 146.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07576/5.906, allocations: 33.75 MB / 1.792 GB, free: 141.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002022/5.908, allocations: 97.34 kB / 1.793 GB, free: 141.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4557/6.364, allocations: 180.6 MB / 1.969 GB, free: 126.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.077e-06/6.364, allocations: 11.36 kB / 1.969 GB, free: 126.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5335/6.897, allocations: 153 MB / 2.118 GB, free: 139 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009037/6.906, allocations: 3.03 MB / 2.121 GB, free: 138.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002834/6.909, allocations: 93.34 kB / 2.121 GB, free: 138.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009773/6.919, allocations: 1.487 MB / 2.123 GB, free: 137.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004164/6.923, allocations: 498.5 kB / 2.123 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001485/6.925, allocations: 151.1 kB / 2.123 GB, free: 137.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006055/6.931, allocations: 3.822 MB / 2.127 GB, free: 135.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.8e-07/6.931, allocations: 0 / 2.127 GB, free: 135.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01626/6.947, allocations: 3.821 MB / 2.131 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.002247/6.949, allocations: 265.4 kB / 2.131 GB, free: 131.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05731/7.007, allocations: 33.34 MB / 2.164 GB, free: 98.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/7.007, allocations: 0 / 2.164 GB, free: 98.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03978/7.047, allocations: 20.46 MB / 2.184 GB, free: 77.63 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006032/7.053, allocations: 0.713 MB / 2.184 GB, free: 76.93 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04073/7.093, allocations: 29.6 MB / 2.213 GB, free: 47.42 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007981/7.101, allocations: 5.249 MB / 2.218 GB, free: 42.13 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006395/7.108, allocations: 2.077 MB / 2.22 GB, free: 40.05 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001473/7.109, allocations: 315.4 kB / 2.221 GB, free: 39.74 MB / 478.1 MB Notification: Performance of SimCode: time 1.533e-06/7.109, allocations: 0 / 2.221 GB, free: 39.74 MB / 478.1 MB Notification: Performance of Templates: time 0.7545/7.864, allocations: 258.1 MB / 2.473 GB, free: 98.13 MB / 478.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) Environment - environmentSimulation: