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.009009/0.009009, allocations: 99.81 kB / 15.73 MB, free: 6.062 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.00179/0.00179, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04404/0.04404, allocations: 9.138 MB / 299.7 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002489/0.002489, allocations: 55.91 kB / 414.6 MB, free: 21.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1258, allocations: 51.44 MB / 466.1 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.009837/0.1357, allocations: 8.431 MB / 474.5 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005656/0.1413, allocations: 2.609 MB / 477.1 MB, free: 6.602 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001539/0.1429, allocations: 35.94 kB / 477.2 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001325/0.1444, allocations: 357.6 kB / 477.5 MB, free: 6.215 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004196/0.1486, allocations: 1.463 MB / 479 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005849/0.1492, allocations: 139.8 kB / 479.1 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003732/0.153, allocations: 2.556 MB / 481.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001541/0.1545, allocations: 0.9129 MB / 482.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001658/0.1562, allocations: 0.9105 MB / 483.5 MB, free: 188 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00209/0.1583, allocations: 1.319 MB / 484.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000661/0.159, allocations: 232 kB / 485 MB, free: 14.63 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001781/0.1608, allocations: 0.8192 MB / 485.9 MB, free: 13.81 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001414/0.1622, allocations: 1.239 MB / 487.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002296/0.1645, allocations: 1.577 MB / 488.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005395/0.1699, allocations: 5.058 MB / 493.7 MB, free: 5.906 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.1699, allocations: 0 / 493.7 MB, free: 5.906 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1699, allocations: 0 / 493.7 MB, free: 5.906 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.583e-05/0.17, allocations: 0 / 493.7 MB, free: 5.906 MB / 366.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.009732/0.1798, allocations: 4.441 MB / 498.2 MB, free: 1.395 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.1798, allocations: 8.031 kB / 498.2 MB, free: 1.387 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00617/0.186, allocations: 1.789 MB / 500 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002341/0.1884, allocations: 1.365 MB / 0.4896 GB, free: 14.19 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000111/0.1885, allocations: 148.1 kB / 0.4897 GB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004272/0.1889, allocations: 203.7 kB / 0.4899 GB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01241/0.2013, allocations: 8.251 MB / 0.498 GB, free: 5.203 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.913e-05/0.2014, allocations: 23.77 kB / 0.498 GB, free: 5.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000298/0.2017, allocations: 95.86 kB / 0.4981 GB, free: 5.086 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002879/0.2046, allocations: 1.911 MB / 0.5 GB, free: 3.172 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3076/0.5123, allocations: 7.417 MB / 0.5072 GB, free: 38.78 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03987/0.5522, allocations: 25.58 MB / 0.5322 GB, free: 21.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005831/0.5581, allocations: 2.622 MB / 0.5347 GB, free: 20.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001497/0.5596, allocations: 0.9171 MB / 0.5356 GB, free: 19.94 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006156/0.5658, allocations: 5.095 MB / 0.5406 GB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.747e-05/0.5659, allocations: 43.31 kB / 0.5406 GB, free: 15.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 3.807e-06/0.5659, allocations: 0 / 0.5406 GB, free: 15.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=176): time 0.01195/0.5778, allocations: 5.52 MB / 0.546 GB, free: 11.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.98e-05/0.5779, allocations: 72.72 kB / 0.5461 GB, free: 11.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004508/0.5824, allocations: 2.623 MB / 0.5487 GB, free: 8.648 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001017/0.5825, allocations: 45.7 kB / 0.5487 GB, free: 8.598 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001445/0.584, allocations: 2.183 MB / 0.5508 GB, free: 6.422 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006222/0.5846, allocations: 0.6761 MB / 0.5515 GB, free: 5.754 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001278/0.5859, allocations: 0.8263 MB / 0.5523 GB, free: 4.914 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.019e-05/0.586, allocations: 301.1 kB / 0.5526 GB, free: 4.617 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002029/0.588, allocations: 1.376 MB / 0.5539 GB, free: 3.234 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003499/0.5916, allocations: 3.637 MB / 0.5575 GB, free: 14.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007269/0.5988, allocations: 5.403 MB / 0.5628 GB, free: 7.973 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.884e-05/0.599, allocations: 25.69 kB / 0.5628 GB, free: 7.949 MB / 398.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.01031/0.6093, allocations: 5.238 MB / 0.5679 GB, free: 2.715 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.366e-05/0.6094, allocations: 40 kB / 0.5679 GB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001475/0.6096, allocations: 76 kB / 0.568 GB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/0.6106, allocations: 360.5 kB / 0.5684 GB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002874/0.6135, allocations: 0.9205 MB / 0.5693 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005615/0.6191, allocations: 4.164 MB / 0.5733 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00322/0.6223, allocations: 203.9 kB / 0.5735 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006497/0.623, allocations: 250.3 kB / 0.5738 GB, free: 12.59 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 (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 {(2,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003299/0.6263, allocations: 1.614 MB / 0.5753 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005339/0.6269, allocations: 242.4 kB / 0.5756 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004402/0.6313, allocations: 2.336 MB / 0.5778 GB, free: 8.371 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001051/0.6314, allocations: 31.98 kB / 0.5779 GB, free: 8.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/0.6314, allocations: 4 kB / 0.5779 GB, free: 8.336 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.509e-05/0.6314, allocations: 7.969 kB / 0.5779 GB, free: 8.328 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01252/0.644, allocations: 6.447 MB / 0.5842 GB, free: 1.785 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-05/0.644, allocations: 4 kB / 0.5842 GB, free: 1.781 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009299/0.6449, allocations: 243.7 kB / 0.5844 GB, free: 1.543 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007085/0.6457, allocations: 264.9 kB / 0.5847 GB, free: 1.281 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001214/0.6458, allocations: 35.91 kB / 0.5847 GB, free: 1.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004392/0.6502, allocations: 3.415 MB / 0.588 GB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.41e-05/0.6502, allocations: 15.92 kB / 0.5881 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006123/0.6564, allocations: 3.614 MB / 0.5916 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001063/0.6575, allocations: 318.9 kB / 0.5919 GB, free: 9.676 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006432/0.6581, allocations: 36 kB / 0.5919 GB, free: 9.641 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001269/0.6594, allocations: 71.91 kB / 0.592 GB, free: 9.57 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002774/0.6597, allocations: 109 kB / 0.5921 GB, free: 9.461 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001203/0.6598, allocations: 50.03 kB / 0.5921 GB, free: 9.414 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004445/0.6643, allocations: 1.684 MB / 0.5938 GB, free: 7.715 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6643, allocations: 0 / 0.5938 GB, free: 7.715 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004522/0.6688, allocations: 0.7192 MB / 0.5945 GB, free: 6.996 MB / 430.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 (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 {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004591/0.6693, allocations: 170.8 kB / 0.5947 GB, free: 6.824 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008576/0.6779, allocations: 3.445 MB / 0.598 GB, free: 3.391 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.139e-05/0.6779, allocations: 0 / 0.598 GB, free: 3.391 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002955/0.6809, allocations: 1.167 MB / 0.5992 GB, free: 2.215 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003661/0.6846, allocations: 400.9 kB / 0.5995 GB, free: 1.836 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02097/0.7056, allocations: 6.776 MB / 0.6062 GB, free: 10.98 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006635/0.7122, allocations: 2.619 MB / 0.6087 GB, free: 8.328 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006283/0.7186, allocations: 1.271 MB / 0.61 GB, free: 7.051 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009068/0.7195, allocations: 171.4 kB / 0.6101 GB, free: 6.887 MB / 446.1 MB Notification: Performance of SimCode: time 1.152e-06/0.7195, allocations: 0 / 0.6101 GB, free: 6.887 MB / 446.1 MB Notification: Performance of Templates: time 0.06554/0.7851, allocations: 26.57 MB / 0.6361 GB, free: 12.46 MB / 478.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)