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.0008869/0.0008871, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.008244/0.008245, allocations: 168.7 kB / 16.26 MB, free: 6.652 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.564/1.564, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1904/0.1904, allocations: 9.115 MB / 300.5 MB, free: 2.766 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000398/0.0003981, allocations: 8 kB / 363.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1415, allocations: 52.43 MB / 416.2 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.2869/0.4284, allocations: 30 MB / 446.2 MB, free: 24.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01809/0.4466, allocations: 6.75 MB / 452.9 MB, free: 21.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007744/0.4544, allocations: 113.7 kB / 453 MB, free: 21.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001392/0.4558, allocations: 302.2 kB / 453.3 MB, free: 21.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00421/0.46, allocations: 1.336 MB / 454.6 MB, free: 20.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005197/0.4606, allocations: 112.8 kB / 454.8 MB, free: 20.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003928/0.4645, allocations: 3.538 MB / 458.3 MB, free: 19.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001059/0.4656, allocations: 0.8253 MB / 459.1 MB, free: 19.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001073/0.4667, allocations: 0.754 MB / 459.9 MB, free: 19.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001601/0.4683, allocations: 1.323 MB / 461.2 MB, free: 18.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000267/0.4685, allocations: 128.2 kB / 461.3 MB, free: 18.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001296/0.4699, allocations: 0.7654 MB / 462.1 MB, free: 18.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008527/0.4707, allocations: 1.155 MB / 463.2 MB, free: 18.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001451/0.4722, allocations: 1.509 MB / 464.7 MB, free: 16.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005571/0.4778, allocations: 4.533 MB / 469.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.4778, allocations: 0 / 469.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.786e-06/0.4778, allocations: 0 / 469.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001161/0.4779, allocations: 2.938 kB / 469.3 MB, free: 15.54 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.009775/0.4877, allocations: 3.705 MB / 473 MB, free: 13.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.774e-05/0.4878, allocations: 10.19 kB / 473 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00801/0.4958, allocations: 1.807 MB / 474.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004251/0.5001, allocations: 1.357 MB / 476.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002376/0.5004, allocations: 151.4 kB / 476.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009814/0.5014, allocations: 203.6 kB / 476.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01879/0.5202, allocations: 8.256 MB / 484.8 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000103/0.5203, allocations: 22.27 kB / 484.8 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003243/0.5206, allocations: 95.12 kB / 484.9 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004044/0.5247, allocations: 1.905 MB / 486.8 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01935/0.5441, allocations: 7.423 MB / 494.2 MB, free: 5.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04137/0.5855, allocations: 25.63 MB / 0.5077 GB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007001/0.5925, allocations: 2.612 MB / 0.5102 GB, free: 8.328 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00178/0.5944, allocations: 0.9117 MB / 0.5111 GB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009525/0.6039, allocations: 5.102 MB / 0.5161 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.412e-05/0.604, allocations: 43.56 kB / 0.5161 GB, free: 1.746 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 4.409e-06/0.604, allocations: 0 / 0.5161 GB, free: 1.746 MB / 382.1 MB Notification: Performance of matching and sorting (n=176): time 0.01573/0.6198, allocations: 5.463 MB / 0.5215 GB, free: 12.29 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.29e-05/0.6199, allocations: 72.72 kB / 0.5215 GB, free: 12.2 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006119/0.626, allocations: 2.611 MB / 0.5241 GB, free: 9.559 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002703/0.6263, allocations: 49.69 kB / 0.5241 GB, free: 9.504 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002102/0.6284, allocations: 2.097 MB / 0.5262 GB, free: 7.375 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00092/0.6294, allocations: 0.6437 MB / 0.5268 GB, free: 6.723 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008861/0.6303, allocations: 346.9 kB / 0.5271 GB, free: 6.375 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.6304, allocations: 301.1 kB / 0.5274 GB, free: 6.078 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002975/0.6334, allocations: 1.378 MB / 0.5288 GB, free: 4.691 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004872/0.6383, allocations: 3.629 MB / 0.5323 GB, free: 15.94 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009002/0.6473, allocations: 5.421 MB / 0.5376 GB, free: 9.418 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.009e-05/0.6475, allocations: 24 kB / 0.5376 GB, free: 9.395 MB / 414.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.01187/0.6593, allocations: 5.214 MB / 0.5427 GB, free: 4.176 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001039/0.6595, allocations: 40 kB / 0.5428 GB, free: 4.137 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001537/0.6597, allocations: 83.94 kB / 0.5428 GB, free: 4.055 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001131/0.6608, allocations: 360.6 kB / 0.5432 GB, free: 3.699 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003499/0.6643, allocations: 0.9126 MB / 0.5441 GB, free: 2.785 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00565/0.67, allocations: 3.839 MB / 0.5478 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003617/0.6736, allocations: 203.9 kB / 0.548 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008318/0.6745, allocations: 244 kB / 0.5482 GB, free: 14.37 MB / 430.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.004583/0.6791, allocations: 1.611 MB / 0.5498 GB, free: 12.74 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007672/0.6799, allocations: 229 kB / 0.55 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004961/0.6848, allocations: 2.338 MB / 0.5523 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001203/0.685, allocations: 27.98 kB / 0.5523 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-05/0.685, allocations: 7.984 kB / 0.5524 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.84e-05/0.6851, allocations: 7.922 kB / 0.5524 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01514/0.7002, allocations: 6.49 MB / 0.5587 GB, free: 3.488 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.556e-05/0.7003, allocations: 8.031 kB / 0.5587 GB, free: 3.48 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009511/0.7012, allocations: 243.6 kB / 0.5589 GB, free: 3.242 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007468/0.702, allocations: 259.2 kB / 0.5592 GB, free: 2.988 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001387/0.7021, allocations: 39.98 kB / 0.5592 GB, free: 2.949 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004111/0.7063, allocations: 3.151 MB / 0.5623 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/0.7063, allocations: 7.938 kB / 0.5623 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005986/0.7123, allocations: 3.609 MB / 0.5658 GB, free: 11.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009457/0.7133, allocations: 314.2 kB / 0.5661 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005241/0.7138, allocations: 36.27 kB / 0.5662 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.7149, allocations: 83.89 kB / 0.5662 GB, free: 11.53 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002686/0.7152, allocations: 109 kB / 0.5664 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/0.7153, allocations: 47.94 kB / 0.5664 GB, free: 11.38 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003369/0.7187, allocations: 1.68 MB / 0.568 GB, free: 9.684 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7187, allocations: 0 / 0.568 GB, free: 9.684 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004121/0.7229, allocations: 0.7148 MB / 0.5687 GB, free: 8.969 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 (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.0005964/0.7235, allocations: 174.9 kB / 0.5689 GB, free: 8.785 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006965/0.7305, allocations: 3.414 MB / 0.5722 GB, free: 5.375 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.337e-06/0.7305, allocations: 0 / 0.5722 GB, free: 5.375 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00214/0.7327, allocations: 1.169 MB / 0.5734 GB, free: 4.195 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004273/0.737, allocations: 375.5 kB / 0.5737 GB, free: 3.832 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2668/1.004, allocations: 8.374 MB / 0.5819 GB, free: 99.59 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002698/1.007, allocations: 2.62 MB / 0.5845 GB, free: 98.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003109/1.01, allocations: 1.273 MB / 0.5857 GB, free: 98.81 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004147/1.01, allocations: 177.9 kB / 0.5859 GB, free: 98.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.193e-06/1.01, allocations: 3.906 kB / 0.5859 GB, free: 98.8 MB / 446.1 MB Notification: Performance of Templates: time 0.05537/1.065, allocations: 25.7 MB / 0.611 GB, free: 93.84 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)