Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.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.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.DoublePendulum") translateModel(PlanarMechanics.Examples.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009821/0.0009823, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.001214/0.001214, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.542/1.542, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2181/0.2181, allocations: 9.113 MB / 300.2 MB, free: 2.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004545/0.0004546, allocations: 11.98 kB / 363.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1399, allocations: 52.43 MB / 415.5 MB, free: 8.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.3392/0.4792, allocations: 27.95 MB / 443.5 MB, free: 28.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01914/0.4984, allocations: 6.483 MB / 450 MB, free: 23.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008761/0.5072, allocations: 116.3 kB / 450.1 MB, free: 23.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00537/0.5126, allocations: 1.373 MB / 451.5 MB, free: 23.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01637/0.529, allocations: 4.883 MB / 456.3 MB, free: 21.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001849/0.5309, allocations: 133.8 kB / 456.5 MB, free: 20.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005201/0.5361, allocations: 2.814 MB / 459.3 MB, free: 19.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001481/0.5376, allocations: 0.8068 MB / 460.1 MB, free: 19.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001481/0.5391, allocations: 0.8023 MB / 460.9 MB, free: 19.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001857/0.541, allocations: 1.301 MB / 462.2 MB, free: 18.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004467/0.5414, allocations: 130.5 kB / 462.3 MB, free: 18.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001681/0.5431, allocations: 0.6527 MB / 463 MB, free: 18.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001302/0.5444, allocations: 1.12 MB / 464.1 MB, free: 18.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000724/0.5452, allocations: 0.6409 MB / 464.7 MB, free: 17.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004044/0.5492, allocations: 3.693 MB / 468.4 MB, free: 17.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.5493, allocations: 4 kB / 468.4 MB, free: 17.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.746e-06/0.5493, allocations: 0 / 468.4 MB, free: 17.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001312/0.5494, allocations: 0 / 468.4 MB, free: 17.04 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: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.01088/0.5603, allocations: 3.742 MB / 472.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/0.5604, allocations: 9.281 kB / 472.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008081/0.5684, allocations: 1.8 MB / 474 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004635/0.5731, allocations: 1.34 MB / 475.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000182/0.5733, allocations: 157.6 kB / 475.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006241/0.574, allocations: 197.7 kB / 475.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01606/0.59, allocations: 8.235 MB / 483.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-05/0.5902, allocations: 26.55 kB / 483.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003043/0.5905, allocations: 94.05 kB / 484 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003352/0.5938, allocations: 1.907 MB / 485.9 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01673/0.6106, allocations: 7.384 MB / 493.3 MB, free: 5.773 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04332/0.6539, allocations: 25.61 MB / 0.5068 GB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006441/0.6604, allocations: 2.611 MB / 0.5093 GB, free: 8.934 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001496/0.662, allocations: 0.9117 MB / 0.5102 GB, free: 8.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007302/0.6693, allocations: 5.091 MB / 0.5152 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.519e-05/0.6694, allocations: 51.56 kB / 0.5152 GB, free: 2.352 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 3.978e-06/0.6694, allocations: 0 / 0.5152 GB, free: 2.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=176): time 0.01384/0.6832, allocations: 5.448 MB / 0.5206 GB, free: 12.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.565e-05/0.6833, allocations: 68.72 kB / 0.5206 GB, free: 12.83 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003911/0.6872, allocations: 2.599 MB / 0.5232 GB, free: 10.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001266/0.6874, allocations: 49.7 kB / 0.5232 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001502/0.6889, allocations: 2.097 MB / 0.5252 GB, free: 8.016 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005995/0.6895, allocations: 0.6515 MB / 0.5259 GB, free: 7.355 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001788/0.6897, allocations: 84 kB / 0.526 GB, free: 7.273 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003038/0.69, allocations: 483.2 kB / 0.5264 GB, free: 6.793 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002289/0.6923, allocations: 1.355 MB / 0.5277 GB, free: 5.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004179/0.6965, allocations: 3.61 MB / 0.5313 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003657/0.7002, allocations: 2.226 MB / 0.5334 GB, free: 14.46 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-05/0.7002, allocations: 23.94 kB / 0.5335 GB, free: 14.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.009604/0.7098, allocations: 5.184 MB / 0.5385 GB, free: 9.258 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.244e-05/0.71, allocations: 40 kB / 0.5386 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.699e-05/0.71, allocations: 76 kB / 0.5386 GB, free: 9.145 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009001/0.711, allocations: 377.1 kB / 0.539 GB, free: 8.773 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002889/0.7139, allocations: 0.9204 MB / 0.5399 GB, free: 7.852 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005438/0.7193, allocations: 3.828 MB / 0.5436 GB, free: 3.887 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003297/0.7226, allocations: 211.9 kB / 0.5438 GB, free: 3.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004966/0.7232, allocations: 248 kB / 0.5441 GB, free: 3.438 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 358 * Number of states: 0 () * Number of discrete variables: 18 (revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (498): * Single equations (assignments): 493 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003217/0.7264, allocations: 1.603 MB / 0.5456 GB, free: 1.82 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004726/0.7269, allocations: 233 kB / 0.5459 GB, free: 1.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004063/0.7309, allocations: 2.323 MB / 0.5481 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001001/0.731, allocations: 27.98 kB / 0.5482 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.387e-06/0.7311, allocations: 4 kB / 0.5482 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.675e-05/0.7311, allocations: 7.969 kB / 0.5482 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01161/0.7427, allocations: 6.485 MB / 0.5545 GB, free: 8.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/0.7428, allocations: 4 kB / 0.5545 GB, free: 8.586 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009388/0.7437, allocations: 247.6 kB / 0.5547 GB, free: 8.344 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000664/0.7444, allocations: 256.6 kB / 0.555 GB, free: 8.09 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-05/0.7445, allocations: 35.98 kB / 0.555 GB, free: 8.055 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003884/0.7484, allocations: 3.145 MB / 0.5581 GB, free: 4.777 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.825e-06/0.7484, allocations: 7.938 kB / 0.5581 GB, free: 4.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00564/0.7541, allocations: 3.582 MB / 0.5616 GB, free: 1.117 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009339/0.755, allocations: 318 kB / 0.5619 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002862/0.7553, allocations: 40.2 kB / 0.5619 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000845/0.7562, allocations: 75.91 kB / 0.562 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002111/0.7564, allocations: 109.1 kB / 0.5621 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.867e-05/0.7565, allocations: 47.94 kB / 0.5622 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002844/0.7594, allocations: 1.665 MB / 0.5638 GB, free: 14.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.896e-06/0.7594, allocations: 0 / 0.5638 GB, free: 14.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003612/0.763, allocations: 0.7225 MB / 0.5645 GB, free: 14.12 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,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 (132): * Single equations (assignments): 127 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000431/0.7634, allocations: 178.9 kB / 0.5647 GB, free: 13.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006033/0.7695, allocations: 3.394 MB / 0.568 GB, free: 10.54 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.7695, allocations: 1.125 kB / 0.568 GB, free: 10.54 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001806/0.7713, allocations: 1.16 MB / 0.5691 GB, free: 9.367 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002394/0.7737, allocations: 386.1 kB / 0.5695 GB, free: 8.996 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01361/0.7874, allocations: 8.032 MB / 0.5773 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2595/1.047, allocations: 2.614 MB / 0.5799 GB, free: 102.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003422/1.05, allocations: 1.277 MB / 0.5811 GB, free: 102.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004668/1.051, allocations: 176.5 kB / 0.5813 GB, free: 102.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.393e-06/1.051, allocations: 0 / 0.5813 GB, free: 102.2 MB / 446.1 MB Notification: Performance of Templates: time 0.05841/1.109, allocations: 25.14 MB / 0.6058 GB, free: 98.57 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.sim & ./PlanarMechanics_PlanarMechanics.Examples.DoublePendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1)