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-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/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.001099/0.001099, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001233/0.001233, allocations: 195.8 kB / 16.14 MB, free: 6.656 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.593/1.593, allocations: 222.9 MB / 239.8 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1592/0.1592, allocations: 9.12 MB / 299.1 MB, free: 1.883 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 67.89 kB / 361.3 MB, free: 13.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1128, allocations: 51.42 MB / 412.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.2607/0.3736, allocations: 18.24 MB / 430.9 MB, free: 34.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01017/0.3838, allocations: 4.445 MB / 435.4 MB, free: 32.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004952/0.3888, allocations: 67.81 kB / 435.5 MB, free: 32.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009928/0.3899, allocations: 263.7 kB / 435.7 MB, free: 32.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003547/0.3935, allocations: 1.188 MB / 436.9 MB, free: 31.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003161/0.3938, allocations: 76.64 kB / 437 MB, free: 31.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002595/0.3964, allocations: 3.034 MB / 440 MB, free: 30.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007503/0.3972, allocations: 0.6507 MB / 440.7 MB, free: 30.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007296/0.3979, allocations: 0.6283 MB / 441.3 MB, free: 30.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001134/0.3991, allocations: 1.134 MB / 442.4 MB, free: 30.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002124/0.3993, allocations: 116.8 kB / 442.5 MB, free: 30.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001202/0.4005, allocations: 0.7499 MB / 443.3 MB, free: 29.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006612/0.4012, allocations: 0.9853 MB / 444.3 MB, free: 29.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008352/0.402, allocations: 1.278 MB / 445.5 MB, free: 28.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00321/0.4052, allocations: 4.146 MB / 449.7 MB, free: 27.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.4053, allocations: 0 / 449.7 MB, free: 27.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.4053, allocations: 0 / 449.7 MB, free: 27.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.117e-05/0.4053, allocations: 4 kB / 449.7 MB, free: 27.03 MB / 350.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.006473/0.4118, allocations: 3.354 MB / 453.1 MB, free: 25.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.4119, allocations: 10.41 kB / 453.1 MB, free: 25.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00576/0.4176, allocations: 1.714 MB / 454.8 MB, free: 24.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002056/0.4197, allocations: 1.196 MB / 456 MB, free: 24.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.587e-05/0.4198, allocations: 126.9 kB / 456.1 MB, free: 24.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000287/0.4201, allocations: 154 kB / 456.2 MB, free: 24.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01012/0.4302, allocations: 7.211 MB / 463.5 MB, free: 20.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.215e-05/0.4303, allocations: 30.69 kB / 463.5 MB, free: 20.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002645/0.4306, allocations: 73.12 kB / 463.6 MB, free: 20.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002849/0.4335, allocations: 1.735 MB / 465.3 MB, free: 20.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01628/0.4498, allocations: 6.58 MB / 471.9 MB, free: 18.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0364/0.4862, allocations: 21.18 MB / 493.1 MB, free: 3.887 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003742/0.49, allocations: 2.027 MB / 495.1 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009461/0.491, allocations: 0.6772 MB / 495.8 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005347/0.4963, allocations: 3.263 MB / 499 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.661e-05/0.4964, allocations: 55.16 kB / 499.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of pre-optimization done (n=106): time 3.917e-06/0.4964, allocations: 0 / 499.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.01303/0.5095, allocations: 5.524 MB / 0.4928 GB, free: 7.938 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.807e-05/0.5095, allocations: 60.41 kB / 0.4928 GB, free: 7.867 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004511/0.5141, allocations: 2.274 MB / 0.495 GB, free: 5.547 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.564e-05/0.5142, allocations: 37.7 kB / 0.4951 GB, free: 5.504 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001437/0.5156, allocations: 1.845 MB / 0.4969 GB, free: 3.629 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004622/0.5161, allocations: 453.9 kB / 0.4973 GB, free: 3.18 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001141/0.5172, allocations: 0.6706 MB / 0.498 GB, free: 2.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.5174, allocations: 301.1 kB / 0.4983 GB, free: 2.203 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001973/0.5194, allocations: 1.099 MB / 0.4993 GB, free: 1.102 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003214/0.5226, allocations: 2.966 MB / 0.5022 GB, free: 13.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005152/0.5277, allocations: 4.368 MB / 0.5065 GB, free: 7.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-05/0.5278, allocations: 16 kB / 0.5065 GB, free: 7.914 MB / 382.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.007123/0.5349, allocations: 4.143 MB / 0.5106 GB, free: 3.758 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.301e-05/0.535, allocations: 35.94 kB / 0.5106 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.614e-05/0.5351, allocations: 64 kB / 0.5107 GB, free: 3.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004927/0.5356, allocations: 200.8 kB / 0.5108 GB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002041/0.5376, allocations: 0.7291 MB / 0.5116 GB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002837/0.5405, allocations: 2.466 MB / 0.514 GB, free: 128 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002162/0.5427, allocations: 167.9 kB / 0.5141 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002517/0.5429, allocations: 203.9 kB / 0.5143 GB, free: 15.76 MB / 398.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.002215/0.5451, allocations: 1.425 MB / 0.5157 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000316/0.5455, allocations: 189.5 kB / 0.5159 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002647/0.5481, allocations: 1.611 MB / 0.5175 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.506e-05/0.5482, allocations: 24.55 kB / 0.5175 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.5482, allocations: 3.938 kB / 0.5175 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.5483, allocations: 3.984 kB / 0.5175 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007931/0.5562, allocations: 4.889 MB / 0.5223 GB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.969e-06/0.5562, allocations: 4.344 kB / 0.5223 GB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006491/0.5569, allocations: 163.8 kB / 0.5224 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003647/0.5573, allocations: 116.7 kB / 0.5225 GB, free: 7.199 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.48e-05/0.5574, allocations: 27.98 kB / 0.5226 GB, free: 7.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00202/0.5594, allocations: 2.007 MB / 0.5245 GB, free: 5.027 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.5594, allocations: 7.938 kB / 0.5245 GB, free: 5.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003856/0.5633, allocations: 2.552 MB / 0.527 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006072/0.5639, allocations: 262.7 kB / 0.5273 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002244/0.5641, allocations: 23.98 kB / 0.5273 GB, free: 2.109 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006533/0.5648, allocations: 48 kB / 0.5273 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.5649, allocations: 68.86 kB / 0.5274 GB, free: 1.996 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.081e-05/0.565, allocations: 43.97 kB / 0.5275 GB, free: 1.953 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002181/0.5672, allocations: 1.472 MB / 0.5289 GB, free: 468 kB / 398.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5672, allocations: 0 / 0.5289 GB, free: 468 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.002762/0.57, allocations: 0.5719 MB / 0.5295 GB, free: 15.88 MB / 414.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.0003782/0.5704, allocations: 150.2 kB / 0.5296 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004318/0.5747, allocations: 2.625 MB / 0.5322 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.5747, allocations: 1.375 kB / 0.5322 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001151/0.5759, allocations: 0.8325 MB / 0.533 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001625/0.5775, allocations: 307.8 kB / 0.5333 GB, free: 11.97 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01067/0.5882, allocations: 6.885 MB / 0.54 GB, free: 5.031 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002531/0.5908, allocations: 2.362 MB / 0.5423 GB, free: 2.633 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00263/0.5934, allocations: 1.044 MB / 0.5433 GB, free: 1.586 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003621/0.5938, allocations: 143.4 kB / 0.5435 GB, free: 1.445 MB / 414.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5938, allocations: 0 / 0.5435 GB, free: 1.445 MB / 414.1 MB Notification: Performance of Templates: time 0.04293/0.6367, allocations: 20.62 MB / 0.5636 GB, free: 12.96 MB / 446.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 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe 2>&1)