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.001126/0.001127, allocations: 111.3 kB / 15.24 MB, free: 0.6484 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.001653/0.001653, allocations: 201.3 kB / 16.14 MB, free: 6.594 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.483/1.483, allocations: 222.9 MB / 239.8 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2139/0.2139, allocations: 9.12 MB / 299.1 MB, free: 1.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002185/0.002185, allocations: 72.03 kB / 361.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1192, allocations: 51.43 MB / 412.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.222/0.3413, allocations: 18.25 MB / 430.9 MB, free: 34.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008784/0.3501, allocations: 4.447 MB / 435.4 MB, free: 32.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002863/0.353, allocations: 61.94 kB / 435.5 MB, free: 32.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000641/0.3537, allocations: 273.6 kB / 435.7 MB, free: 32.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002111/0.3559, allocations: 1.187 MB / 436.9 MB, free: 32.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002282/0.3561, allocations: 73.48 kB / 437 MB, free: 32.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002119/0.3582, allocations: 3.031 MB / 440 MB, free: 31.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007693/0.359, allocations: 0.6492 MB / 440.7 MB, free: 30.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000624/0.3596, allocations: 0.6307 MB / 441.3 MB, free: 30.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00104/0.3607, allocations: 1.137 MB / 442.4 MB, free: 30.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002328/0.3609, allocations: 114.8 kB / 442.5 MB, free: 30.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001113/0.3621, allocations: 0.7523 MB / 443.3 MB, free: 30.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006798/0.3627, allocations: 0.984 MB / 444.3 MB, free: 29.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009509/0.3637, allocations: 1.279 MB / 445.6 MB, free: 28.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003458/0.3672, allocations: 4.147 MB / 449.7 MB, free: 27.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.3672, allocations: 0 / 449.7 MB, free: 27.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.3672, allocations: 0 / 449.7 MB, free: 27.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.553e-05/0.3673, allocations: 0 / 449.7 MB, free: 27.16 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.006862/0.3742, allocations: 3.364 MB / 453.1 MB, free: 25.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.303e-05/0.3743, allocations: 14.19 kB / 453.1 MB, free: 25.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00637/0.3806, allocations: 1.706 MB / 454.8 MB, free: 25.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00296/0.3836, allocations: 1.198 MB / 456 MB, free: 24.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.546e-05/0.3837, allocations: 125.2 kB / 456.1 MB, free: 24.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003917/0.3841, allocations: 156.4 kB / 456.3 MB, free: 24.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008748/0.3929, allocations: 7.211 MB / 463.5 MB, free: 21.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.249e-05/0.393, allocations: 22.59 kB / 463.5 MB, free: 21.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002287/0.3932, allocations: 73 kB / 463.6 MB, free: 20.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002795/0.396, allocations: 1.734 MB / 465.3 MB, free: 20.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01515/0.4112, allocations: 6.586 MB / 471.9 MB, free: 18.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03366/0.4449, allocations: 21.17 MB / 493.1 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003767/0.4487, allocations: 2.024 MB / 495.1 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009268/0.4497, allocations: 0.6752 MB / 495.8 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005681/0.4554, allocations: 3.271 MB / 499 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.794e-05/0.4555, allocations: 51.16 kB / 499.1 MB, free: 13.49 MB / 366.1 MB Notification: Performance of pre-optimization done (n=106): time 3.286e-06/0.4555, allocations: 0 / 499.1 MB, free: 13.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.0131/0.4686, allocations: 5.532 MB / 0.4928 GB, free: 7.863 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/0.4687, allocations: 60.41 kB / 0.4928 GB, free: 7.793 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005754/0.4745, allocations: 2.27 MB / 0.4951 GB, free: 5.477 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003255/0.4748, allocations: 41.7 kB / 0.4951 GB, free: 5.43 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001516/0.4764, allocations: 1.837 MB / 0.4969 GB, free: 3.562 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008092/0.4772, allocations: 453.9 kB / 0.4973 GB, free: 3.113 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001944/0.4792, allocations: 0.6744 MB / 0.498 GB, free: 2.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.4793, allocations: 305.1 kB / 0.4983 GB, free: 2.129 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002198/0.4815, allocations: 1.099 MB / 0.4993 GB, free: 1.027 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003278/0.4848, allocations: 2.962 MB / 0.5022 GB, free: 13.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005546/0.4904, allocations: 4.365 MB / 0.5065 GB, free: 7.863 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.025e-05/0.4904, allocations: 16 kB / 0.5065 GB, free: 7.848 MB / 382.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.007357/0.4978, allocations: 4.141 MB / 0.5106 GB, free: 3.695 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.316e-05/0.4979, allocations: 35.94 kB / 0.5106 GB, free: 3.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.955e-05/0.498, allocations: 64 kB / 0.5107 GB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005625/0.4986, allocations: 209.3 kB / 0.5109 GB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002355/0.5009, allocations: 0.733 MB / 0.5116 GB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002981/0.5039, allocations: 2.461 MB / 0.514 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002507/0.5064, allocations: 167.9 kB / 0.5141 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003437/0.5068, allocations: 200 kB / 0.5143 GB, free: 15.7 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.002552/0.5094, allocations: 1.43 MB / 0.5157 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004388/0.5098, allocations: 185.6 kB / 0.5159 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003038/0.5129, allocations: 1.619 MB / 0.5175 GB, free: 12.44 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001051/0.513, allocations: 23.98 kB / 0.5175 GB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.513, allocations: 3.938 kB / 0.5175 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.513, allocations: 4.547 kB / 0.5175 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00976/0.5228, allocations: 4.885 MB / 0.5223 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.396e-05/0.5228, allocations: 4 kB / 0.5223 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006848/0.5235, allocations: 171.6 kB / 0.5224 GB, free: 7.238 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000375/0.5239, allocations: 112.8 kB / 0.5226 GB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001053/0.524, allocations: 24.33 kB / 0.5226 GB, free: 7.102 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002434/0.5265, allocations: 2.003 MB / 0.5245 GB, free: 4.961 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/0.5265, allocations: 8 kB / 0.5245 GB, free: 4.953 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00408/0.5306, allocations: 2.556 MB / 0.527 GB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007896/0.5314, allocations: 262.7 kB / 0.5273 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000506/0.5319, allocations: 20 kB / 0.5273 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009103/0.5329, allocations: 51.92 kB / 0.5274 GB, free: 1.992 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/0.533, allocations: 68.8 kB / 0.5274 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-05/0.5331, allocations: 39.98 kB / 0.5275 GB, free: 1.887 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002881/0.536, allocations: 1.476 MB / 0.5289 GB, free: 396 kB / 398.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.536, allocations: 0 / 0.5289 GB, free: 396 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.004145/0.5402, allocations: 0.568 MB / 0.5295 GB, free: 15.82 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.0005782/0.5408, allocations: 143 kB / 0.5296 GB, free: 15.67 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005229/0.546, allocations: 2.638 MB / 0.5322 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.263e-06/0.5461, allocations: 0 / 0.5322 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001392/0.5475, allocations: 0.8241 MB / 0.533 GB, free: 12.2 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002376/0.5499, allocations: 316.3 kB / 0.5333 GB, free: 11.89 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01215/0.562, allocations: 6.89 MB / 0.54 GB, free: 4.953 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003819/0.5659, allocations: 2.357 MB / 0.5423 GB, free: 2.559 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003155/0.5691, allocations: 1.036 MB / 0.5433 GB, free: 1.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005386/0.5697, allocations: 143.4 kB / 0.5435 GB, free: 1.379 MB / 414.1 MB Notification: Performance of SimCode: time 1.944e-06/0.5697, allocations: 4 kB / 0.5435 GB, free: 1.375 MB / 414.1 MB Notification: Performance of Templates: time 0.04343/0.6131, allocations: 20.62 MB / 0.5636 GB, free: 12.89 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)