Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.009078/0.009078, allocations: 99.31 kB / 15.73 MB, free: 6.047 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.00188/0.00188, allocations: 188.9 kB / 16.67 MB, free: 5.977 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.478/1.478, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.001142/0.001142, allocations: 51.86 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09426/0.09541, allocations: 46.62 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01534/0.1108, allocations: 15.06 MB / 388.2 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.123, allocations: 4.827 MB / 393.1 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003483/0.1266, allocations: 91.75 kB / 393.1 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006712/0.1334, allocations: 3.173 MB / 396.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007555/0.1409, allocations: 2.556 MB / 398.9 MB, free: 7.508 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002791/0.1438, allocations: 0.9905 MB / 399.9 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01015/0.1539, allocations: 6.631 MB / 406.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006773/0.1607, allocations: 4.35 MB / 410.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004806/0.1656, allocations: 2.246 MB / 413.1 MB, free: 9.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005488/0.1711, allocations: 3.252 MB / 416.3 MB, free: 5.934 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002055/0.1732, allocations: 484 kB / 416.8 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00415/0.1774, allocations: 1.486 MB / 418.3 MB, free: 3.973 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004569/0.182, allocations: 2.903 MB / 421.2 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007233/0.1892, allocations: 3.247 MB / 424.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0171/0.2064, allocations: 10.44 MB / 434.9 MB, free: 3.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.2065, allocations: 7.938 kB / 434.9 MB, free: 3.312 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.2065, allocations: 4 kB / 434.9 MB, free: 3.309 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005133/0.207, allocations: 0 / 434.9 MB, free: 3.309 MB / 366.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.02379/0.2308, allocations: 7.283 MB / 442.2 MB, free: 11.94 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/0.2309, allocations: 8.031 kB / 442.2 MB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01796/0.2488, allocations: 3.942 MB / 446.1 MB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01226/0.2611, allocations: 4.274 MB / 450.4 MB, free: 3.641 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004463/0.2616, allocations: 316.4 kB / 450.7 MB, free: 3.328 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002654/0.2643, allocations: 435.5 kB / 451.1 MB, free: 2.902 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2854/0.5498, allocations: 15.71 MB / 466.9 MB, free: 58.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003272/0.5502, allocations: 63.84 kB / 466.9 MB, free: 58.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001685/0.5519, allocations: 202 kB / 467.1 MB, free: 58.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004809/0.5567, allocations: 3.216 MB / 470.3 MB, free: 57.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02436/0.5811, allocations: 14.13 MB / 484.5 MB, free: 48.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07381/0.6549, allocations: 57.49 MB / 0.5293 GB, free: 6.031 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02021/0.6752, allocations: 6.569 MB / 0.5357 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0095/0.6847, allocations: 3.68 MB / 0.5393 GB, free: 11.51 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03783/0.7226, allocations: 14.64 MB / 0.5536 GB, free: 12.34 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.379e-05/0.7227, allocations: 68.48 kB / 0.5536 GB, free: 12.27 MB / 430.1 MB Notification: Performance of pre-optimization done (n=289): time 5.981e-06/0.7227, allocations: 0 / 0.5536 GB, free: 12.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=339): time 0.1901/0.9128, allocations: 42.39 MB / 0.595 GB, free: 1.801 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002003/0.9131, allocations: 221.9 kB / 0.5952 GB, free: 1.539 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01277/0.9259, allocations: 5.491 MB / 0.6006 GB, free: 12.06 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00154/0.9275, allocations: 69.7 kB / 0.6007 GB, free: 11.99 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0056/0.9331, allocations: 4.361 MB / 0.6049 GB, free: 7.566 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002278/0.9354, allocations: 1.257 MB / 0.6062 GB, free: 6.293 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006399/0.9418, allocations: 1.856 MB / 0.608 GB, free: 4.422 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.942, allocations: 309.1 kB / 0.6083 GB, free: 4.117 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008432/0.9504, allocations: 4.804 MB / 0.613 GB, free: 15.3 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01375/0.9642, allocations: 9.802 MB / 0.6225 GB, free: 3.055 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3253/1.29, allocations: 15.57 MB / 0.6377 GB, free: 143.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002017/1.29, allocations: 49.72 kB / 0.6378 GB, free: 143.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.05033/1.34, allocations: 19.56 MB / 0.6569 GB, free: 137.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001154/1.34, allocations: 79.22 kB / 0.657 GB, free: 137.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002254/1.341, allocations: 173.9 kB / 0.6571 GB, free: 137.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0244/1.365, allocations: 5.94 MB / 0.6629 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01024/1.375, allocations: 2.11 MB / 0.665 GB, free: 135.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03245/1.408, allocations: 26.16 MB / 0.6905 GB, free: 111.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00953/1.417, allocations: 0.5504 MB / 0.6911 GB, free: 110.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002221/1.42, allocations: 0.5143 MB / 0.6916 GB, free: 110.2 MB / 494.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 (1098): * Single equations (assignments): 1090 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007365/1.427, allocations: 3.101 MB / 0.6946 GB, free: 107.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001684/1.429, allocations: 0.4908 MB / 0.6951 GB, free: 106.9 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03195/1.461, allocations: 12.94 MB / 0.7077 GB, free: 93.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001369/1.461, allocations: 52 kB / 0.7078 GB, free: 93.85 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.832e-05/1.461, allocations: 15.23 kB / 0.7078 GB, free: 93.84 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001222/1.461, allocations: 19.95 kB / 0.7078 GB, free: 93.82 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0558/1.517, allocations: 24.51 MB / 0.7317 GB, free: 68.92 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.793e-05/1.517, allocations: 8 kB / 0.7317 GB, free: 68.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003234/1.52, allocations: 0.5733 MB / 0.7323 GB, free: 68.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01867/1.539, allocations: 4.97 MB / 0.7371 GB, free: 63.36 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001187/1.54, allocations: 59.98 kB / 0.7372 GB, free: 63.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02415/1.564, allocations: 21.35 MB / 0.7581 GB, free: 41.75 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/1.564, allocations: 8 kB / 0.7581 GB, free: 41.74 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0343/1.599, allocations: 17.47 MB / 0.7751 GB, free: 24.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004476/1.603, allocations: 1.244 MB / 0.7763 GB, free: 22.93 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002171/1.605, allocations: 55.98 kB / 0.7764 GB, free: 22.88 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004077/1.61, allocations: 263.5 kB / 0.7766 GB, free: 22.62 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001147/1.611, allocations: 197 kB / 0.7768 GB, free: 22.43 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007181/1.611, allocations: 83.98 kB / 0.7769 GB, free: 22.35 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006688/1.618, allocations: 3.418 MB / 0.7802 GB, free: 18.95 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.71e-07/1.618, allocations: 2.438 kB / 0.7803 GB, free: 18.95 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009544/1.628, allocations: 1.756 MB / 0.782 GB, free: 17.2 MB / 494.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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00112/1.629, allocations: 213 kB / 0.7822 GB, free: 16.99 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01592/1.645, allocations: 10.97 MB / 0.7929 GB, free: 6.031 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.115e-05/1.645, allocations: 8.125 kB / 0.7929 GB, free: 6.023 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005877/1.651, allocations: 4.093 MB / 0.7969 GB, free: 1.91 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005369/1.656, allocations: 0.6137 MB / 0.7975 GB, free: 1.312 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2579/1.914, allocations: 16.05 MB / 0.8132 GB, free: 162.6 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01016/1.924, allocations: 4.627 MB / 0.8177 GB, free: 161.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.01005/1.934, allocations: 2.969 MB / 0.8206 GB, free: 161.7 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002192/1.937, allocations: 360.5 kB / 0.8209 GB, free: 161.7 MB / 0.4981 GB Notification: Performance of SimCode: time 9.21e-07/1.937, allocations: 0 / 0.8209 GB, free: 161.7 MB / 0.4981 GB Notification: Performance of Templates: time 0.1291/2.066, allocations: 77.36 MB / 0.8965 GB, free: 102.5 MB / 0.4981 GB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1)