Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.PlanarFourbar,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009151/0.0009153, allocations: 86.64 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.001274/0.001273, 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.633/1.633, allocations: 205.4 MB / 222.1 MB, free: 5.391 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.0004597/0.0004599, allocations: 12 kB / 278.9 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3015/0.302, allocations: 47.59 MB / 326.5 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.07038/0.3724, allocations: 73.88 MB / 400.4 MB, free: 9.414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04029/0.4128, allocations: 15.86 MB / 416.2 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01658/0.4294, allocations: 367.1 kB / 416.6 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01237/0.4418, allocations: 3.623 MB / 420.2 MB, free: 5.504 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03/0.4719, allocations: 10.77 MB / 431 MB, free: 10.69 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005657/0.4775, allocations: 1.24 MB / 432.2 MB, free: 9.449 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.329/0.8066, allocations: 66.42 MB / 498.6 MB, free: 19.83 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01462/0.8212, allocations: 10.24 MB / 0.497 GB, free: 12.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005419/0.8267, allocations: 2.413 MB / 0.4993 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005522/0.8323, allocations: 3.663 MB / 0.5029 GB, free: 8.391 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001453/0.8337, allocations: 248 kB / 0.5031 GB, free: 8.148 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003115/0.8369, allocations: 1.302 MB / 0.5044 GB, free: 7.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003231/0.8401, allocations: 3.235 MB / 0.5076 GB, free: 4.703 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002201/0.8423, allocations: 1.441 MB / 0.509 GB, free: 4.199 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01219/0.8545, allocations: 10.36 MB / 0.5191 GB, free: 11.2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/0.8546, allocations: 0 / 0.5191 GB, free: 11.2 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.969e-06/0.8546, allocations: 4 kB / 0.5191 GB, free: 11.19 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.00045/0.8551, allocations: 0 / 0.5191 GB, free: 11.19 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.01677/0.8718, allocations: 7.423 MB / 0.5263 GB, free: 4.367 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.8719, allocations: 8.031 kB / 0.5263 GB, free: 4.359 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03826/0.9102, allocations: 4.974 MB / 0.5312 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01667/0.9269, allocations: 6.458 MB / 0.5375 GB, free: 10.98 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000376/0.9273, allocations: 437.3 kB / 0.5379 GB, free: 10.74 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002483/0.9298, allocations: 0.5836 MB / 0.5385 GB, free: 10.35 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03764/0.9674, allocations: 17.06 MB / 0.5552 GB, free: 13.25 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003344/0.9678, allocations: 81.89 kB / 0.5552 GB, free: 13.2 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001417/0.9692, allocations: 277.6 kB / 0.5555 GB, free: 13.12 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004271/0.9735, allocations: 2.656 MB / 0.5581 GB, free: 10.93 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03461/1.008, allocations: 14.77 MB / 0.5725 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5147/1.523, allocations: 64.59 MB / 0.6356 GB, free: 157.2 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01997/1.543, allocations: 8.824 MB / 0.6442 GB, free: 156.5 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004957/1.548, allocations: 5.054 MB / 0.6492 GB, free: 156.4 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02312/1.571, allocations: 18.64 MB / 0.6673 GB, free: 146.9 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.251e-05/1.571, allocations: 60.56 kB / 0.6674 GB, free: 146.8 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 5.27e-06/1.571, allocations: 2.297 kB / 0.6674 GB, free: 146.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2192/1.79, allocations: 75.17 MB / 0.7408 GB, free: 72.16 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/1.791, allocations: 372.6 kB / 0.7412 GB, free: 71.71 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008038/1.799, allocations: 6.378 MB / 0.7474 GB, free: 65.33 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009472/1.8, allocations: 89.27 kB / 0.7475 GB, free: 65.24 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002634/1.802, allocations: 4.76 MB / 0.7521 GB, free: 60.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001454/1.804, allocations: 1.38 MB / 0.7535 GB, free: 59.14 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005591/1.804, allocations: 188 kB / 0.7537 GB, free: 58.95 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003395/1.805, allocations: 0.7069 MB / 0.7544 GB, free: 58.24 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006548/1.811, allocations: 5.957 MB / 0.7602 GB, free: 52.27 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008444/1.82, allocations: 10.98 MB / 0.7709 GB, free: 38.92 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008905/1.828, allocations: 7.895 MB / 0.7786 GB, free: 31.15 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.418e-05/1.829, allocations: 48 kB / 0.7787 GB, free: 31.11 MB / 478.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04136/1.87, allocations: 23.28 MB / 0.8014 GB, free: 7.895 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001671/1.87, allocations: 76.97 kB / 0.8015 GB, free: 7.82 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002554/1.87, allocations: 172 kB / 0.8016 GB, free: 7.652 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01893/1.889, allocations: 7.522 MB / 0.809 GB, free: 120 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2332/2.123, allocations: 2.185 MB / 0.8111 GB, free: 174.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04216/2.165, allocations: 35.56 MB / 0.8458 GB, free: 161.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009362/2.174, allocations: 0.7485 MB / 0.8466 GB, free: 161.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002002/2.176, allocations: 0.5303 MB / 0.8471 GB, free: 161.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1091): * Single equations (assignments): 1084 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,77.8%) 67,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.006958/2.183, allocations: 3.44 MB / 0.8504 GB, free: 158.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00141/2.185, allocations: 0.5775 MB / 0.851 GB, free: 158.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0282/2.213, allocations: 16.95 MB / 0.8676 GB, free: 142 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.698e-05/2.213, allocations: 48 kB / 0.8676 GB, free: 141.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.144e-05/2.213, allocations: 20.12 kB / 0.8676 GB, free: 141.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-05/2.213, allocations: 15.94 kB / 0.8676 GB, free: 141.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04694/2.26, allocations: 32.16 MB / 0.899 GB, free: 109.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.049e-05/2.26, allocations: 4 kB / 0.8991 GB, free: 109.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003083/2.263, allocations: 0.6062 MB / 0.8996 GB, free: 108.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01798/2.281, allocations: 7.148 MB / 0.9066 GB, free: 101.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001024/2.282, allocations: 62.22 kB / 0.9067 GB, free: 101.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03888/2.321, allocations: 33.88 MB / 0.9398 GB, free: 67.68 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/2.321, allocations: 0 / 0.9398 GB, free: 67.68 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03816/2.359, allocations: 24.59 MB / 0.9638 GB, free: 43.05 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005442/2.365, allocations: 1.661 MB / 0.9654 GB, free: 41.36 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003191/2.368, allocations: 60 kB / 0.9655 GB, free: 41.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005382/2.374, allocations: 456.6 kB / 0.9659 GB, free: 40.86 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001556/2.375, allocations: 242.7 kB / 0.9661 GB, free: 40.62 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008304/2.376, allocations: 97.23 kB / 0.9662 GB, free: 40.53 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.008249/2.384, allocations: 4.049 MB / 0.9702 GB, free: 36.48 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/2.384, allocations: 3.844 kB / 0.9702 GB, free: 36.48 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0115/2.396, allocations: 2.303 MB / 0.9724 GB, free: 34.19 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.001706/2.397, allocations: 247.7 kB / 0.9727 GB, free: 33.95 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02227/2.42, allocations: 14.82 MB / 0.9871 GB, free: 19.18 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.139e-05/2.42, allocations: 0 / 0.9871 GB, free: 19.18 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2103/2.63, allocations: 6.687 MB / 0.9937 GB, free: 174.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00649/2.637, allocations: 0.8314 MB / 0.9945 GB, free: 174.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03966/2.676, allocations: 22.85 MB / 1.017 GB, free: 166.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00618/2.682, allocations: 5.291 MB / 1.022 GB, free: 164.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007286/2.69, allocations: 3.019 MB / 1.025 GB, free: 164.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001754/2.692, allocations: 386 kB / 1.025 GB, free: 163.7 MB / 478.1 MB Notification: Performance of SimCode: time 1.413e-06/2.692, allocations: 0 / 1.025 GB, free: 163.7 MB / 478.1 MB Notification: Performance of Templates: time 0.1494/2.841, allocations: 104.1 MB / 1.127 GB, free: 60.66 MB / 478.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1)