Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) Running command: translateModel(PlanarMechanics.Examples.SpringDamperDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo") translateModel(PlanarMechanics.Examples.SpringDamperDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 183.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.218/1.218, allocations: 222.9 MB / 239.6 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 97.91 kB / 289.9 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04021/0.04021, allocations: 8.942 MB / 349 MB, free: 32 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009277/0.0009277, allocations: 51.81 kB / 411.1 MB, free: 57.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08245/0.0834, allocations: 51.4 MB / 462.5 MB, free: 5.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.0163/0.09973, allocations: 19.41 MB / 481.9 MB, free: 2.238 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.1598/0.2596, allocations: 4.608 MB / 486.5 MB, free: 10.82 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002577/0.2622, allocations: 66.16 kB / 486.6 MB, free: 10.82 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007407/0.263, allocations: 301 kB / 486.9 MB, free: 10.82 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002399/0.2654, allocations: 1.245 MB / 488.1 MB, free: 10.77 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002873/0.2657, allocations: 101.2 kB / 488.2 MB, free: 10.76 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003342/0.2691, allocations: 3.446 MB / 491.7 MB, free: 10.53 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008933/0.27, allocations: 0.7486 MB / 492.4 MB, free: 10.28 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007955/0.2708, allocations: 0.7253 MB / 493.1 MB, free: 10.05 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001365/0.2721, allocations: 1.278 MB / 494.4 MB, free: 9.688 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002425/0.2724, allocations: 129.2 kB / 494.6 MB, free: 9.688 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001313/0.2737, allocations: 0.754 MB / 495.3 MB, free: 9.527 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009141/0.2746, allocations: 1.128 MB / 496.4 MB, free: 9.16 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009544/0.2756, allocations: 1.453 MB / 497.9 MB, free: 8.121 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003344/0.279, allocations: 4.573 MB / 0.4907 GB, free: 5.578 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.279, allocations: 1.188 kB / 0.4907 GB, free: 5.578 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.279, allocations: 3.938 kB / 0.4907 GB, free: 5.574 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.169e-05/0.279, allocations: 0 / 0.4907 GB, free: 5.574 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.004847/0.2839, allocations: 3.26 MB / 0.4939 GB, free: 3.285 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.2839, allocations: 14.11 kB / 0.4939 GB, free: 3.281 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005852/0.2898, allocations: 1.758 MB / 0.4956 GB, free: 2.344 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002142/0.2919, allocations: 1.301 MB / 0.4969 GB, free: 1.402 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.096e-05/0.292, allocations: 142 kB / 0.497 GB, free: 1.371 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003282/0.2924, allocations: 180 kB / 0.4972 GB, free: 1.344 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009692/0.3021, allocations: 8.062 MB / 0.5051 GB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.694e-05/0.3022, allocations: 31.66 kB / 0.5051 GB, free: 11.39 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002486/0.3024, allocations: 87.55 kB / 0.5052 GB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00307/0.3055, allocations: 2.003 MB / 0.5071 GB, free: 9.344 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01186/0.3174, allocations: 7.139 MB / 0.5141 GB, free: 2.199 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03144/0.3488, allocations: 24.14 MB / 0.5377 GB, free: 9.715 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003987/0.3529, allocations: 2.159 MB / 0.5398 GB, free: 7.43 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00101/0.3539, allocations: 0.7158 MB / 0.5405 GB, free: 6.711 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005752/0.3597, allocations: 3.978 MB / 0.5444 GB, free: 2.398 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.816e-05/0.3598, allocations: 47.5 kB / 0.5444 GB, free: 2.344 MB / 362.7 MB Notification: Performance of pre-optimization done (n=114): time 3.937e-06/0.3598, allocations: 0 / 0.5444 GB, free: 2.344 MB / 362.7 MB Notification: Performance of matching and sorting (n=117): time 0.0084/0.3682, allocations: 4.379 MB / 0.5487 GB, free: 13.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.372e-05/0.3682, allocations: 60.41 kB / 0.5487 GB, free: 13.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003155/0.3714, allocations: 2.585 MB / 0.5513 GB, free: 11.22 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.09e-05/0.3715, allocations: 41.7 kB / 0.5513 GB, free: 11.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001177/0.3727, allocations: 2.116 MB / 0.5534 GB, free: 9.055 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003432/0.373, allocations: 460.7 kB / 0.5538 GB, free: 8.609 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009115/0.3739, allocations: 0.7523 MB / 0.5545 GB, free: 7.852 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.263e-05/0.374, allocations: 301.1 kB / 0.5548 GB, free: 7.555 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001701/0.3757, allocations: 1.178 MB / 0.556 GB, free: 6.375 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002968/0.3787, allocations: 3.32 MB / 0.5592 GB, free: 1.996 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005032/0.3838, allocations: 4.789 MB / 0.5639 GB, free: 12.15 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.149e-05/0.3839, allocations: 20 kB / 0.5639 GB, free: 12.13 MB / 394.7 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.007183/0.3911, allocations: 4.426 MB / 0.5682 GB, free: 7.711 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.853e-05/0.3911, allocations: 40 kB / 0.5683 GB, free: 7.672 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.731e-05/0.3912, allocations: 76 kB / 0.5684 GB, free: 7.598 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.163e-05/0.3913, allocations: 100 kB / 0.5685 GB, free: 7.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002354/0.3937, allocations: 0.8422 MB / 0.5693 GB, free: 6.656 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001139/0.3938, allocations: 151.4 kB / 0.5694 GB, free: 6.508 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002189/0.396, allocations: 179.9 kB / 0.5696 GB, free: 6.332 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002821/0.3963, allocations: 228 kB / 0.5698 GB, free: 6.109 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 345 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.colorConnector_b[3],springDamper.colorConnector_b[2],springDamper.colorConnector_b[1],springDamper.colorConnector_a[3],springDamper.colorConnector_a[2],springDamper.colorConnector_a[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (459): * Single equations (assignments): 454 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002255/0.3986, allocations: 1.567 MB / 0.5713 GB, free: 4.531 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003172/0.3989, allocations: 209.2 kB / 0.5715 GB, free: 4.324 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002249/0.4011, allocations: 1.413 MB / 0.5729 GB, free: 2.906 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000121/0.4013, allocations: 27.98 kB / 0.5729 GB, free: 2.879 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.4013, allocations: 0 / 0.5729 GB, free: 2.879 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.4013, allocations: 11.92 kB / 0.573 GB, free: 2.867 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008214/0.4095, allocations: 4.789 MB / 0.5776 GB, free: 13.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.636e-06/0.4096, allocations: 4 kB / 0.5776 GB, free: 13.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007682/0.4103, allocations: 179.8 kB / 0.5778 GB, free: 13.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.06e-05/0.4104, allocations: 8 kB / 0.5778 GB, free: 13.78 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.756e-05/0.4104, allocations: 36.05 kB / 0.5778 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.113e-05/0.4105, allocations: 12.41 kB / 0.5779 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.4105, allocations: 8 kB / 0.5779 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007941/0.4184, allocations: 6.063 MB / 0.5838 GB, free: 7.438 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004031/0.4188, allocations: 298.3 kB / 0.5841 GB, free: 7.125 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002006/0.4191, allocations: 26.34 kB / 0.5841 GB, free: 7.102 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007178/0.4198, allocations: 51.94 kB / 0.5841 GB, free: 7.051 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.4199, allocations: 72.83 kB / 0.5842 GB, free: 6.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.353e-05/0.42, allocations: 38.11 kB / 0.5843 GB, free: 6.945 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002107/0.4221, allocations: 1.655 MB / 0.5859 GB, free: 5.273 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4221, allocations: 0 / 0.5859 GB, free: 5.273 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00272/0.4248, allocations: 0.7773 MB / 0.5866 GB, free: 4.496 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.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 (93): * Single equations (assignments): 88 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003044/0.4252, allocations: 157.8 kB / 0.5868 GB, free: 4.336 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003798/0.429, allocations: 2.613 MB / 0.5893 GB, free: 1.742 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.429, allocations: 0 / 0.5893 GB, free: 1.742 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008421/0.4298, allocations: 0.6299 MB / 0.5899 GB, free: 1.113 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001724/0.4316, allocations: 363.8 kB / 0.5903 GB, free: 0.7656 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01227/0.4439, allocations: 8.686 MB / 0.5988 GB, free: 7.977 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002694/0.4466, allocations: 2.599 MB / 0.6013 GB, free: 5.348 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002967/0.4496, allocations: 1.117 MB / 0.6024 GB, free: 4.227 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004331/0.45, allocations: 171.3 kB / 0.6026 GB, free: 4.059 MB / 426.7 MB Notification: Performance of SimCode: time 9.42e-07/0.45, allocations: 0 / 0.6026 GB, free: 4.059 MB / 426.7 MB Notification: Performance of Templates: time 0.0421/0.4921, allocations: 22.52 MB / 0.6246 GB, free: 13.7 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe 2>&1)