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.009282/0.009282, allocations: 98.34 kB / 15.73 MB, free: 6.008 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.002163/0.002163, allocations: 195.5 kB / 16.68 MB, free: 5.934 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2012/0.2012, allocations: 9.109 MB / 299.6 MB, free: 1.742 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 63.88 kB / 414.7 MB, free: 8.363 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3346, allocations: 51.42 MB / 466.1 MB, free: 18.42 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.009398/0.3441, allocations: 8.436 MB / 474.5 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006966/0.3511, allocations: 2.613 MB / 477.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002204/0.3534, allocations: 35.56 kB / 477.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001366/0.3547, allocations: 368 kB / 477.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004408/0.3593, allocations: 1.411 MB / 478.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005038/0.3598, allocations: 140.5 kB / 479.1 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004091/0.3639, allocations: 2.538 MB / 481.6 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001451/0.3654, allocations: 0.9146 MB / 482.5 MB, free: 7.324 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00172/0.3671, allocations: 0.9028 MB / 483.4 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001633/0.3687, allocations: 1.315 MB / 484.7 MB, free: 5.984 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004157/0.3692, allocations: 232.1 kB / 485 MB, free: 5.984 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001669/0.3708, allocations: 0.8225 MB / 485.8 MB, free: 5.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001098/0.3719, allocations: 1.243 MB / 487 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001383/0.3733, allocations: 1.583 MB / 488.6 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006161/0.3795, allocations: 5.057 MB / 493.7 MB, free: 196 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3795, allocations: 0 / 493.7 MB, free: 196 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3796, allocations: 0 / 493.7 MB, free: 196 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001557/0.3797, allocations: 0 / 493.7 MB, free: 196 kB / 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.01142/0.3911, allocations: 4.437 MB / 498.1 MB, free: 12.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.3912, allocations: 12.03 kB / 498.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006659/0.3979, allocations: 1.789 MB / 499.9 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002987/0.4009, allocations: 1.373 MB / 0.4895 GB, free: 8.914 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001234/0.401, allocations: 144.1 kB / 0.4897 GB, free: 8.773 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004142/0.4014, allocations: 199.8 kB / 0.4899 GB, free: 8.578 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01419/0.4157, allocations: 8.255 MB / 0.4979 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.831e-05/0.4158, allocations: 23.77 kB / 0.4979 GB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000322/0.4161, allocations: 95.86 kB / 0.498 GB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003179/0.4193, allocations: 1.911 MB / 0.4999 GB, free: 13.9 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01634/0.4356, allocations: 7.418 MB / 0.5071 GB, free: 6.473 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04591/0.4816, allocations: 25.59 MB / 0.5321 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006797/0.4885, allocations: 2.618 MB / 0.5347 GB, free: 9.625 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001798/0.4903, allocations: 0.9079 MB / 0.5356 GB, free: 8.715 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01019/0.5005, allocations: 5.095 MB / 0.5406 GB, free: 3.105 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.917e-05/0.5006, allocations: 47.55 kB / 0.5406 GB, free: 3.051 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 6.733e-06/0.5007, allocations: 0 / 0.5406 GB, free: 3.051 MB / 414.1 MB Notification: Performance of matching and sorting (n=176): time 0.01653/0.5172, allocations: 5.52 MB / 0.546 GB, free: 13.54 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.695e-05/0.5173, allocations: 72.66 kB / 0.5461 GB, free: 13.46 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006157/0.5235, allocations: 2.623 MB / 0.5486 GB, free: 10.8 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004592/0.524, allocations: 49.7 kB / 0.5487 GB, free: 10.75 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001996/0.526, allocations: 2.181 MB / 0.5508 GB, free: 8.547 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001088/0.5271, allocations: 0.6743 MB / 0.5515 GB, free: 7.867 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002116/0.5293, allocations: 0.8302 MB / 0.5523 GB, free: 7.023 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.5294, allocations: 301.1 kB / 0.5526 GB, free: 6.727 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00264/0.5321, allocations: 1.371 MB / 0.5539 GB, free: 5.348 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004158/0.5362, allocations: 3.637 MB / 0.5574 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00689/0.5431, allocations: 5.42 MB / 0.5627 GB, free: 10.07 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.794e-05/0.5433, allocations: 23.94 kB / 0.5628 GB, free: 10.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.01086/0.5541, allocations: 5.224 MB / 0.5679 GB, free: 4.812 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001174/0.5543, allocations: 47.97 kB / 0.5679 GB, free: 4.766 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001854/0.5545, allocations: 76 kB / 0.568 GB, free: 4.691 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00122/0.5557, allocations: 358.1 kB / 0.5683 GB, free: 4.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003214/0.559, allocations: 0.9201 MB / 0.5692 GB, free: 3.418 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00578/0.5648, allocations: 4.183 MB / 0.5733 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003945/0.5688, allocations: 207.9 kB / 0.5735 GB, free: 14.88 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008768/0.5697, allocations: 244 kB / 0.5737 GB, free: 14.64 MB / 462.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.004023/0.5737, allocations: 1.607 MB / 0.5753 GB, free: 13.03 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006876/0.5744, allocations: 238.4 kB / 0.5755 GB, free: 12.79 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004817/0.5792, allocations: 2.342 MB / 0.5778 GB, free: 10.43 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001198/0.5794, allocations: 31.98 kB / 0.5778 GB, free: 10.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.968e-05/0.5794, allocations: 4 kB / 0.5779 GB, free: 10.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.975e-05/0.5794, allocations: 11.97 kB / 0.5779 GB, free: 10.39 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01478/0.5942, allocations: 6.449 MB / 0.5842 GB, free: 3.801 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.74e-05/0.5943, allocations: 4 kB / 0.5842 GB, free: 3.797 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/0.5953, allocations: 247.7 kB / 0.5844 GB, free: 3.555 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007426/0.5961, allocations: 248.6 kB / 0.5846 GB, free: 3.309 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001614/0.5963, allocations: 35.98 kB / 0.5847 GB, free: 3.273 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3324/0.9287, allocations: 3.418 MB / 0.588 GB, free: 110.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.418e-06/0.9287, allocations: 4.656 kB / 0.588 GB, free: 110.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007025/0.9358, allocations: 3.617 MB / 0.5915 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000997/0.9368, allocations: 315.1 kB / 0.5918 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002909/0.9371, allocations: 26.84 kB / 0.5919 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000969/0.9381, allocations: 89.73 kB / 0.592 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000333/0.9384, allocations: 101.4 kB / 0.5921 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001337/0.9385, allocations: 55.92 kB / 0.5921 GB, free: 110 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003275/0.9418, allocations: 1.68 MB / 0.5937 GB, free: 109.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.9418, allocations: 4 kB / 0.5938 GB, free: 109.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003963/0.9458, allocations: 0.719 MB / 0.5945 GB, free: 109.3 MB / 462.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.0003627/0.9462, allocations: 168.1 kB / 0.5946 GB, free: 109.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006631/0.9528, allocations: 3.43 MB / 0.598 GB, free: 108 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.9529, allocations: 0 / 0.598 GB, free: 108 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001832/0.9547, allocations: 1.168 MB / 0.5991 GB, free: 107.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002261/0.957, allocations: 400.4 kB / 0.5995 GB, free: 107.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01336/0.9703, allocations: 6.782 MB / 0.6061 GB, free: 104.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004149/0.9746, allocations: 2.62 MB / 0.6087 GB, free: 103.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003157/0.9778, allocations: 1.268 MB / 0.6099 GB, free: 103 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004716/0.9782, allocations: 176.9 kB / 0.6101 GB, free: 102.9 MB / 462.1 MB Notification: Performance of SimCode: time 7.21e-07/0.9783, allocations: 0 / 0.6101 GB, free: 102.9 MB / 462.1 MB Notification: Performance of Templates: time 0.04464/1.023, allocations: 26.57 MB / 0.636 GB, free: 84.12 MB / 462.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)