Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 100.1 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.00162/0.00162, 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.627/1.627, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.0005162/0.0005167, allocations: 8 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2913, allocations: 47.59 MB / 326.5 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.04406/0.3354, allocations: 45.73 MB / 372.2 MB, free: 5.676 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02855/0.3641, allocations: 11.09 MB / 383.3 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0121/0.3762, allocations: 239.4 kB / 383.5 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0103/0.3866, allocations: 2.271 MB / 385.8 MB, free: 8.035 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02593/0.4125, allocations: 6.686 MB / 392.5 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004247/0.4168, allocations: 0.8502 MB / 393.3 MB, free: 492 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.04168/0.4585, allocations: 28.07 MB / 421.4 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009381/0.468, allocations: 4.995 MB / 426.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004278/0.4723, allocations: 1.565 MB / 427.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00442/0.4767, allocations: 2.274 MB / 430.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001823/0.4786, allocations: 236 kB / 430.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004105/0.4827, allocations: 1.085 MB / 431.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004509/0.4873, allocations: 2.408 MB / 433.9 MB, free: 7.746 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002855/0.4902, allocations: 1.201 MB / 435.1 MB, free: 6.535 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01167/0.5019, allocations: 8.09 MB / 443.2 MB, free: 14.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.5019, allocations: 0 / 443.2 MB, free: 14.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.5019, allocations: 3.938 kB / 443.2 MB, free: 14.42 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004771/0.5024, allocations: 0 / 443.2 MB, free: 14.42 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01787/0.5203, allocations: 6.453 MB / 449.7 MB, free: 7.887 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.5204, allocations: 15.97 kB / 449.7 MB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2514/0.7717, allocations: 9.761 MB / 459.5 MB, free: 110.9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01379/0.7856, allocations: 4.645 MB / 464.1 MB, free: 109.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00028/0.7859, allocations: 315.5 kB / 464.4 MB, free: 109.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002165/0.7881, allocations: 437.4 kB / 464.8 MB, free: 109.1 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02453/0.8126, allocations: 15.74 MB / 480.6 MB, free: 97.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001607/0.8128, allocations: 60.92 kB / 480.6 MB, free: 97.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006042/0.8135, allocations: 203.1 kB / 480.8 MB, free: 96.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003966/0.8174, allocations: 3.22 MB / 484.1 MB, free: 93.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02548/0.8429, allocations: 14.05 MB / 498.1 MB, free: 79.65 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07303/0.916, allocations: 57.54 MB / 0.5426 GB, free: 21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01264/0.9287, allocations: 6.576 MB / 0.549 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02157/0.9503, allocations: 14.44 MB / 0.5632 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.54e-05/0.9504, allocations: 68.5 kB / 0.5632 GB, free: 15.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=286): time 6.483e-06/0.9504, allocations: 0 / 0.5632 GB, free: 15.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=336): time 0.1463/1.097, allocations: 42.82 MB / 0.605 GB, free: 4.137 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/1.097, allocations: 217.8 kB / 0.6052 GB, free: 3.879 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1786/1.275, allocations: 5.735 MB / 0.6108 GB, free: 144.2 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008378/1.276, allocations: 73.86 kB / 0.6109 GB, free: 144.1 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002641/1.279, allocations: 4.428 MB / 0.6152 GB, free: 141.7 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001252/1.28, allocations: 1.238 MB / 0.6164 GB, free: 140.8 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004911/1.281, allocations: 172.3 kB / 0.6166 GB, free: 140.6 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003726/1.281, allocations: 0.6799 MB / 0.6173 GB, free: 140.2 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005562/1.287, allocations: 4.587 MB / 0.6218 GB, free: 138.5 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006677/1.293, allocations: 9.536 MB / 0.6311 GB, free: 130.2 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007096/1.301, allocations: 6.455 MB / 0.6374 GB, free: 127.6 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-05/1.301, allocations: 53.8 kB / 0.6374 GB, free: 127.6 MB / 430.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.03669/1.337, allocations: 18.9 MB / 0.6559 GB, free: 115.3 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.38e-05/1.337, allocations: 80 kB / 0.656 GB, free: 115.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001578/1.338, allocations: 172 kB / 0.6561 GB, free: 115.1 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02097/1.359, allocations: 5.833 MB / 0.6618 GB, free: 109.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006781/1.365, allocations: 2.051 MB / 0.6638 GB, free: 107.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02598/1.391, allocations: 24.95 MB / 0.6882 GB, free: 81.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00755/1.399, allocations: 0.55 MB / 0.6887 GB, free: 81.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001412/1.4, allocations: 0.5011 MB / 0.6892 GB, free: 80.91 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004909/1.405, allocations: 3.104 MB / 0.6922 GB, free: 77.79 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001029/1.406, allocations: 0.5013 MB / 0.6927 GB, free: 77.29 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02716/1.434, allocations: 12.6 MB / 0.705 GB, free: 64.61 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001052/1.434, allocations: 52.62 kB / 0.7051 GB, free: 64.56 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.116e-05/1.434, allocations: 8 kB / 0.7051 GB, free: 64.55 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.776e-05/1.434, allocations: 15.94 kB / 0.7051 GB, free: 64.54 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04774/1.482, allocations: 24.33 MB / 0.7289 GB, free: 39.73 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.363e-05/1.482, allocations: 4.594 kB / 0.7289 GB, free: 39.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003128/1.485, allocations: 0.5772 MB / 0.7294 GB, free: 39.15 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01872/1.503, allocations: 4.839 MB / 0.7342 GB, free: 34.3 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001098/1.505, allocations: 58.67 kB / 0.7342 GB, free: 34.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02216/1.527, allocations: 20.19 MB / 0.7539 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/1.527, allocations: 11.94 kB / 0.754 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2554/1.782, allocations: 17.7 MB / 0.7712 GB, free: 128 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004303/1.787, allocations: 1.249 MB / 0.7725 GB, free: 127.6 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001644/1.788, allocations: 60.25 kB / 0.7725 GB, free: 127.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003654/1.792, allocations: 260 kB / 0.7728 GB, free: 127.5 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006878/1.793, allocations: 193.8 kB / 0.773 GB, free: 127.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002728/1.793, allocations: 79.62 kB / 0.773 GB, free: 127.5 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005428/1.798, allocations: 3.61 MB / 0.7766 GB, free: 126.3 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.41e-07/1.798, allocations: 0 / 0.7766 GB, free: 126.3 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.008565/1.807, allocations: 1.735 MB / 0.7783 GB, free: 126.1 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009189/1.808, allocations: 226.1 kB / 0.7785 GB, free: 126 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01386/1.822, allocations: 10.54 MB / 0.7888 GB, free: 122 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.092e-05/1.822, allocations: 4.938 kB / 0.7888 GB, free: 122 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005622/1.828, allocations: 4.003 MB / 0.7927 GB, free: 120.3 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004073/1.832, allocations: 0.573 MB / 0.7932 GB, free: 120.1 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03101/1.863, allocations: 18.36 MB / 0.8112 GB, free: 106.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006908/1.87, allocations: 4.755 MB / 0.8158 GB, free: 102.7 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.009321/1.879, allocations: 2.989 MB / 0.8187 GB, free: 99.67 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002026/1.881, allocations: 360.9 kB / 0.8191 GB, free: 99.32 MB / 430.1 MB Notification: Performance of SimCode: time 1.052e-06/1.881, allocations: 0 / 0.8191 GB, free: 99.32 MB / 430.1 MB Notification: Performance of Templates: time 0.1089/1.99, allocations: 75.38 MB / 0.8927 GB, free: 23.75 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) Environment - environmentSimulation: