Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.005957/0.005957, allocations: 100.6 kB / 15.73 MB, free: 6.008 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.001412/0.001412, allocations: 188.9 kB / 16.67 MB, free: 5.934 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.53/1.53, allocations: 205.1 MB / 222.6 MB, free: 4.492 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.001325/0.001325, allocations: 46.34 kB / 326.5 MB, free: 14.58 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1105, allocations: 46.63 MB / 373.2 MB, free: 1.441 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02093/0.1315, allocations: 18.56 MB / 391.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01598/0.1475, allocations: 6.162 MB / 397.9 MB, free: 8.617 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006139/0.1537, allocations: 143.6 kB / 398 MB, free: 8.477 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01336/0.1672, allocations: 6.273 MB / 404.3 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008597/0.1758, allocations: 2.938 MB / 407.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005601/0.1814, allocations: 2.284 MB / 409.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01568/0.1972, allocations: 8.827 MB / 418.4 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01367/0.2109, allocations: 8.438 MB / 426.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00762/0.2186, allocations: 3.229 MB / 430 MB, free: 8.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008609/0.2272, allocations: 4.184 MB / 434.2 MB, free: 4.125 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003084/0.2303, allocations: 0.7226 MB / 434.9 MB, free: 3.402 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005728/0.2361, allocations: 1.904 MB / 436.8 MB, free: 1.496 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005883/0.242, allocations: 3.878 MB / 440.7 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007961/0.25, allocations: 4.154 MB / 444.9 MB, free: 9.434 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3058/0.5558, allocations: 13.29 MB / 458.2 MB, free: 27.99 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.171e-05/0.5559, allocations: 1.062 kB / 458.2 MB, free: 27.99 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.5559, allocations: 0 / 458.2 MB, free: 27.99 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006706/0.5566, allocations: 0 / 458.2 MB, free: 27.99 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: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.03931/0.5959, allocations: 9.167 MB / 467.3 MB, free: 24.67 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.837e-05/0.596, allocations: 11.73 kB / 467.3 MB, free: 24.67 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05027/0.6463, allocations: 4.89 MB / 472.2 MB, free: 24.15 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02112/0.6674, allocations: 6.731 MB / 479 MB, free: 23.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006098/0.6681, allocations: 432 kB / 479.4 MB, free: 23.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004358/0.6725, allocations: 0.5884 MB / 480 MB, free: 23.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03969/0.7122, allocations: 17.06 MB / 497 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003839/0.7126, allocations: 80 kB / 497.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002778/0.7154, allocations: 268 kB / 497.4 MB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004655/0.72, allocations: 2.656 MB / 0.4883 GB, free: 12.69 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03203/0.7521, allocations: 14.78 MB / 0.5027 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1011/0.8532, allocations: 64.47 MB / 0.5657 GB, free: 12.99 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02545/0.8787, allocations: 8.775 MB / 0.5743 GB, free: 4.074 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008466/0.8872, allocations: 5.059 MB / 0.5792 GB, free: 15.01 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03845/0.9257, allocations: 18.67 MB / 0.5974 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.65e-05/0.9258, allocations: 68.55 kB / 0.5975 GB, free: 12.23 MB / 494.1 MB Notification: Performance of pre-optimization done (n=281): time 7.093e-06/0.9259, allocations: 0 / 0.5975 GB, free: 12.23 MB / 494.1 MB Notification: Performance of matching and sorting (n=374): time 0.5651/1.491, allocations: 74.45 MB / 0.6702 GB, free: 188.9 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001314/1.491, allocations: 374.6 kB / 0.6706 GB, free: 188.5 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008259/1.499, allocations: 6.425 MB / 0.6768 GB, free: 183.9 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001165/1.501, allocations: 85.7 kB / 0.6769 GB, free: 183.8 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002707/1.503, allocations: 4.943 MB / 0.6817 GB, free: 178.9 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002283/1.506, allocations: 1.437 MB / 0.6832 GB, free: 177.5 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003193/1.509, allocations: 1.991 MB / 0.6851 GB, free: 175.5 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 5.577e-05/1.509, allocations: 301.1 kB / 0.6854 GB, free: 175.2 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007214/1.516, allocations: 5.988 MB / 0.6912 GB, free: 169.2 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009132/1.525, allocations: 11.02 MB / 0.702 GB, free: 155.7 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01738/1.543, allocations: 17.97 MB / 0.7195 GB, free: 135.3 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001408/1.543, allocations: 51.94 kB / 0.7196 GB, free: 135.3 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.0438/1.587, allocations: 23.36 MB / 0.7424 GB, free: 111.9 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001033/1.587, allocations: 82.52 kB / 0.7425 GB, free: 111.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001491/1.587, allocations: 172 kB / 0.7427 GB, free: 111.6 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02197/1.609, allocations: 7.449 MB / 0.7499 GB, free: 104.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008027/1.617, allocations: 2.187 MB / 0.7521 GB, free: 101.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04243/1.659, allocations: 38.12 MB / 0.7893 GB, free: 63.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01029/1.67, allocations: 0.7423 MB / 0.79 GB, free: 62.69 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001833/1.672, allocations: 0.5234 MB / 0.7905 GB, free: 62.16 MB / 0.5137 GB 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.006597/1.678, allocations: 3.445 MB / 0.7939 GB, free: 58.71 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001592/1.68, allocations: 0.6053 MB / 0.7945 GB, free: 58.1 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03145/1.711, allocations: 16.96 MB / 0.811 GB, free: 41.07 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001174/1.712, allocations: 48 kB / 0.8111 GB, free: 41.02 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.481e-05/1.712, allocations: 20 kB / 0.8111 GB, free: 41 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001213/1.712, allocations: 19.92 kB / 0.8111 GB, free: 40.98 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3417/2.053, allocations: 32.04 MB / 0.8424 GB, free: 178.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.321e-05/2.054, allocations: 3.562 kB / 0.8424 GB, free: 178.2 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003458/2.057, allocations: 0.6037 MB / 0.843 GB, free: 178.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02161/2.079, allocations: 7.011 MB / 0.8499 GB, free: 177 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001306/2.08, allocations: 59.66 kB / 0.8499 GB, free: 177 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04498/2.125, allocations: 36.32 MB / 0.8854 GB, free: 152.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/2.125, allocations: 6.375 kB / 0.8854 GB, free: 152.6 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03973/2.165, allocations: 24.64 MB / 0.9095 GB, free: 128.2 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006467/2.171, allocations: 1.695 MB / 0.9111 GB, free: 126.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003107/2.174, allocations: 67.92 kB / 0.9112 GB, free: 126.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006829/2.181, allocations: 443.3 kB / 0.9116 GB, free: 126.4 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001834/2.183, allocations: 246.6 kB / 0.9118 GB, free: 126.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004297/2.184, allocations: 97.73 kB / 0.9119 GB, free: 126 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.007843/2.191, allocations: 4.084 MB / 0.9159 GB, free: 122 MB / 0.5137 GB Notification: Performance of sort global known variables: time 5.11e-07/2.192, allocations: 0 / 0.9159 GB, free: 122 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01415/2.206, allocations: 2.294 MB / 0.9182 GB, free: 119.7 MB / 0.5137 GB 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001744/2.207, allocations: 279.7 kB / 0.9184 GB, free: 119.4 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.02328/2.231, allocations: 14.9 MB / 0.933 GB, free: 104.6 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.846e-05/2.231, allocations: 4 kB / 0.933 GB, free: 104.6 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.01215/2.243, allocations: 6.71 MB / 0.9395 GB, free: 97.88 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009515/2.253, allocations: 0.8937 MB / 0.9404 GB, free: 97.03 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03218/2.285, allocations: 20.24 MB / 0.9602 GB, free: 76.79 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006023/2.291, allocations: 5.289 MB / 0.9653 GB, free: 71.46 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.006675/2.298, allocations: 3.028 MB / 0.9683 GB, free: 68.43 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001909/2.299, allocations: 383.4 kB / 0.9687 GB, free: 68.05 MB / 0.5137 GB Notification: Performance of SimCode: time 9.01e-07/2.3, allocations: 0 / 0.9687 GB, free: 68.05 MB / 0.5137 GB Notification: Performance of Templates: time 0.443/2.743, allocations: 108.8 MB / 1.075 GB, free: 138.8 MB / 0.5137 GB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1)