Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.Pendulum.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PlanarMechanics.Examples.Pendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.Pendulum") translateModel(PlanarMechanics.Examples.Pendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.Pendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 104.5 kB / 16.35 MB, free: 6.289 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.001445/0.001445, allocations: 192.7 kB / 17.29 MB, free: 5.863 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04326/0.04326, allocations: 9.11 MB / 300.3 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001874/0.001874, allocations: 59.91 kB / 363.4 MB, free: 6.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.228/0.2299, allocations: 51.42 MB / 414.8 MB, free: 24.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.006411/0.2364, allocations: 7.021 MB / 421.8 MB, free: 17.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004532/0.2409, allocations: 2.357 MB / 424.2 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009902/0.242, allocations: 27.94 kB / 424.2 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008863/0.2429, allocations: 306 kB / 424.5 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002735/0.2457, allocations: 1.272 MB / 425.8 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002763/0.246, allocations: 83.83 kB / 425.8 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001837/0.2478, allocations: 2.161 MB / 428 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005964/0.2484, allocations: 0.7075 MB / 428.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005607/0.249, allocations: 0.7587 MB / 429.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008573/0.2499, allocations: 1.125 MB / 430.6 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001934/0.2501, allocations: 204 kB / 430.8 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000899/0.251, allocations: 0.8035 MB / 431.6 MB, free: 8.008 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005309/0.2515, allocations: 1.06 MB / 432.7 MB, free: 6.945 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007302/0.2522, allocations: 1.355 MB / 434 MB, free: 5.582 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002801/0.2551, allocations: 4.465 MB / 438.5 MB, free: 1.105 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2551, allocations: 0 / 438.5 MB, free: 1.105 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2551, allocations: 0 / 438.5 MB, free: 1.105 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.694e-05/0.2552, allocations: 0 / 438.5 MB, free: 1.105 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1017 * Number of variables: 1017 Notification: Performance of Generate backend data structure: time 0.006285/0.2615, allocations: 3.356 MB / 441.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.2615, allocations: 8.031 kB / 441.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006069/0.2676, allocations: 1.721 MB / 443.6 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003045/0.2707, allocations: 1.197 MB / 444.8 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001081/0.2708, allocations: 119.3 kB / 444.9 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004232/0.2712, allocations: 156.2 kB / 445 MB, free: 10.44 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0108/0.282, allocations: 7.216 MB / 452.3 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.275e-05/0.2821, allocations: 15.88 kB / 452.3 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002511/0.2824, allocations: 75.88 kB / 452.3 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002663/0.2851, allocations: 1.738 MB / 454.1 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01216/0.2972, allocations: 6.58 MB / 460.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02836/0.3256, allocations: 21.12 MB / 481.8 MB, free: 4.965 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00391/0.3296, allocations: 2.018 MB / 483.8 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009979/0.3306, allocations: 0.6753 MB / 484.5 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004729/0.3354, allocations: 3.27 MB / 487.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.3354, allocations: 51.09 kB / 487.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=106): time 2.765e-06/0.3354, allocations: 0 / 487.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.01003/0.3455, allocations: 5.519 MB / 493.3 MB, free: 8.93 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.467e-05/0.3455, allocations: 60.41 kB / 493.4 MB, free: 8.859 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002793/0.3483, allocations: 2.277 MB / 495.7 MB, free: 6.535 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.351e-05/0.3484, allocations: 41.7 kB / 495.7 MB, free: 6.488 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001052/0.3495, allocations: 1.829 MB / 497.5 MB, free: 4.629 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003382/0.3498, allocations: 461.9 kB / 498 MB, free: 4.172 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00078/0.3506, allocations: 0.6629 MB / 498.6 MB, free: 3.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.33e-05/0.3507, allocations: 301.1 kB / 498.9 MB, free: 3.203 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001624/0.3523, allocations: 1.096 MB / 0.4883 GB, free: 2.105 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00269/0.355, allocations: 2.974 MB / 0.4912 GB, free: 14.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004848/0.3599, allocations: 4.38 MB / 0.4955 GB, free: 8.914 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.337e-05/0.36, allocations: 20 kB / 0.4955 GB, free: 8.895 MB / 382.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.007367/0.3673, allocations: 4.133 MB / 0.4995 GB, free: 4.754 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.919e-05/0.3675, allocations: 35.94 kB / 0.4996 GB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.759e-05/0.3675, allocations: 68 kB / 0.4996 GB, free: 4.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005536/0.3681, allocations: 204.7 kB / 0.4998 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002021/0.3701, allocations: 0.7252 MB / 0.5005 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003011/0.3731, allocations: 2.706 MB / 0.5032 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002143/0.3753, allocations: 159.9 kB / 0.5033 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002864/0.3756, allocations: 204 kB / 0.5035 GB, free: 0.5156 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 9 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (395): * Single equations (assignments): 390 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.183/0.5586, allocations: 1.422 MB / 0.5049 GB, free: 86.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003806/0.559, allocations: 187.8 kB / 0.5051 GB, free: 86.62 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002928/0.5619, allocations: 1.618 MB / 0.5067 GB, free: 86.19 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001006/0.562, allocations: 24.69 kB / 0.5067 GB, free: 86.19 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.5621, allocations: 1.469 kB / 0.5067 GB, free: 86.19 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.5621, allocations: 5.203 kB / 0.5067 GB, free: 86.19 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007948/0.57, allocations: 4.866 MB / 0.5115 GB, free: 84.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.165e-06/0.5701, allocations: 2.469 kB / 0.5115 GB, free: 84.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006172/0.5707, allocations: 160.2 kB / 0.5116 GB, free: 84.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002963/0.571, allocations: 115.5 kB / 0.5117 GB, free: 84.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.719e-05/0.5711, allocations: 23.91 kB / 0.5118 GB, free: 84.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001575/0.5727, allocations: 2.161 MB / 0.5139 GB, free: 82.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.5727, allocations: 7.625 kB / 0.5139 GB, free: 82.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002879/0.5756, allocations: 2.557 MB / 0.5164 GB, free: 81.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005054/0.5761, allocations: 267.1 kB / 0.5166 GB, free: 81.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003096/0.5764, allocations: 19.62 kB / 0.5166 GB, free: 81.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000715/0.5771, allocations: 58.69 kB / 0.5167 GB, free: 81.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001245/0.5773, allocations: 65.39 kB / 0.5168 GB, free: 81.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.422e-05/0.5773, allocations: 37.97 kB / 0.5168 GB, free: 81.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002001/0.5793, allocations: 1.472 MB / 0.5182 GB, free: 80.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.372e-06/0.5794, allocations: 0 / 0.5182 GB, free: 80.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002359/0.5817, allocations: 0.5738 MB / 0.5188 GB, free: 80.82 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute.phi,revolute.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 (88): * Single equations (assignments): 83 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002942/0.582, allocations: 146.5 kB / 0.5189 GB, free: 80.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003449/0.5855, allocations: 2.65 MB / 0.5215 GB, free: 79.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.5855, allocations: 0 / 0.5215 GB, free: 79.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009209/0.5864, allocations: 0.8233 MB / 0.5223 GB, free: 78.94 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00155/0.588, allocations: 344.8 kB / 0.5227 GB, free: 78.69 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008988/0.597, allocations: 5.485 MB / 0.528 GB, free: 73.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002985/0.6, allocations: 2.362 MB / 0.5303 GB, free: 71.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002279/0.6023, allocations: 1.036 MB / 0.5313 GB, free: 70.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004237/0.6028, allocations: 143.4 kB / 0.5315 GB, free: 70.32 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.6028, allocations: 0 / 0.5315 GB, free: 70.32 MB / 382.1 MB Notification: Performance of Templates: time 0.04462/0.6474, allocations: 19.76 MB / 0.5508 GB, free: 50.73 MB / 382.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.Pendulum.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.Pendulum.sim & ./PlanarMechanics_PlanarMechanics.Examples.Pendulum -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe 2>&1)