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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001564/0.001564, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001641/0.001641, allocations: 193.9 kB / 16.14 MB, free: 6.691 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.487/1.487, allocations: 222.9 MB / 239.8 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.193/0.193, allocations: 9.116 MB / 299.1 MB, free: 1.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 63.91 kB / 361.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1282, allocations: 51.43 MB / 412.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.2618/0.3901, allocations: 19.39 MB / 432.1 MB, free: 34.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01074/0.4009, allocations: 4.617 MB / 436.7 MB, free: 31.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005062/0.406, allocations: 68.19 kB / 436.8 MB, free: 31.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00145/0.4074, allocations: 292.4 kB / 437.1 MB, free: 31.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004194/0.4117, allocations: 1.241 MB / 438.3 MB, free: 31.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006535/0.4124, allocations: 107.7 kB / 438.4 MB, free: 31.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004246/0.4167, allocations: 3.419 MB / 441.8 MB, free: 30.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001568/0.4182, allocations: 0.7431 MB / 442.6 MB, free: 29.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002109/0.4204, allocations: 0.7187 MB / 443.3 MB, free: 29.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002476/0.4229, allocations: 1.279 MB / 444.6 MB, free: 29.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009493/0.4238, allocations: 130 kB / 444.7 MB, free: 29.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002371/0.4262, allocations: 0.7538 MB / 445.5 MB, free: 28.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001815/0.4281, allocations: 1.12 MB / 446.6 MB, free: 28.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002714/0.4308, allocations: 1.46 MB / 448 MB, free: 27.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005587/0.4364, allocations: 4.572 MB / 452.6 MB, free: 25.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.4364, allocations: 0 / 452.6 MB, free: 25.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4364, allocations: 3.938 kB / 452.6 MB, free: 25.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002345/0.4367, allocations: 0 / 452.6 MB, free: 25.64 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: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.009659/0.4463, allocations: 3.263 MB / 455.9 MB, free: 23.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.66e-05/0.4464, allocations: 10.31 kB / 455.9 MB, free: 23.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006709/0.4531, allocations: 1.76 MB / 457.6 MB, free: 23.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002825/0.456, allocations: 1.298 MB / 458.9 MB, free: 22.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.4561, allocations: 145.9 kB / 459.1 MB, free: 22.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008169/0.457, allocations: 188.1 kB / 459.3 MB, free: 22.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01456/0.4715, allocations: 8.056 MB / 467.3 MB, free: 18.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001229/0.4717, allocations: 24.33 kB / 467.4 MB, free: 18.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006086/0.4723, allocations: 89.41 kB / 467.4 MB, free: 18.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003853/0.4762, allocations: 2.006 MB / 469.4 MB, free: 18.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01649/0.4927, allocations: 7.135 MB / 476.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03871/0.5314, allocations: 24.14 MB / 0.489 GB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004632/0.5361, allocations: 2.154 MB / 0.4911 GB, free: 9.988 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001238/0.5374, allocations: 0.7203 MB / 0.4918 GB, free: 9.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006123/0.5435, allocations: 3.991 MB / 0.4957 GB, free: 4.934 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/0.5436, allocations: 43.5 kB / 0.4957 GB, free: 4.883 MB / 366.1 MB Notification: Performance of pre-optimization done (n=114): time 3.306e-06/0.5436, allocations: 3.938 kB / 0.4957 GB, free: 4.879 MB / 366.1 MB Notification: Performance of matching and sorting (n=117): time 0.01011/0.5537, allocations: 4.385 MB / 0.5 GB, free: 448 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.365e-05/0.5538, allocations: 60.41 kB / 0.5001 GB, free: 376 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004665/0.5584, allocations: 2.573 MB / 0.5026 GB, free: 13.76 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001834/0.5586, allocations: 41.7 kB / 0.5026 GB, free: 13.71 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001791/0.5605, allocations: 2.123 MB / 0.5047 GB, free: 11.56 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007687/0.5613, allocations: 458.1 kB / 0.5051 GB, free: 11.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00161/0.5629, allocations: 0.7539 MB / 0.5059 GB, free: 10.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.563, allocations: 305.1 kB / 0.5062 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002186/0.5652, allocations: 1.171 MB / 0.5073 GB, free: 8.871 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003791/0.569, allocations: 3.324 MB / 0.5106 GB, free: 4.484 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006383/0.5754, allocations: 4.781 MB / 0.5152 GB, free: 14.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.546e-05/0.5755, allocations: 20 kB / 0.5152 GB, free: 14.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008922/0.5845, allocations: 4.431 MB / 0.5196 GB, free: 10.19 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000143/0.5847, allocations: 40 kB / 0.5196 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002065/0.5849, allocations: 76 kB / 0.5197 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001898/0.5851, allocations: 100 kB / 0.5198 GB, free: 9.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003414/0.5885, allocations: 0.8422 MB / 0.5206 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001485/0.5887, allocations: 155.8 kB / 0.5207 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00316/0.5919, allocations: 183.9 kB / 0.5209 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003345/0.5922, allocations: 220 kB / 0.5211 GB, free: 8.59 MB / 398.1 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.002782/0.595, allocations: 1.568 MB / 0.5227 GB, free: 7.012 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003354/0.5953, allocations: 205.3 kB / 0.5229 GB, free: 6.809 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002479/0.5978, allocations: 1.418 MB / 0.5242 GB, free: 5.383 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001278/0.598, allocations: 23.98 kB / 0.5243 GB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.598, allocations: 0 / 0.5243 GB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/0.598, allocations: 3.984 kB / 0.5243 GB, free: 5.355 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01029/0.6083, allocations: 4.789 MB / 0.5289 GB, free: 444 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.289e-05/0.6084, allocations: 8 kB / 0.529 GB, free: 436 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008509/0.6092, allocations: 180.5 kB / 0.5291 GB, free: 256 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.083e-05/0.6093, allocations: 14.91 kB / 0.5291 GB, free: 244 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.76e-05/0.6093, allocations: 31.98 kB / 0.5292 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.471e-05/0.6094, allocations: 16.16 kB / 0.5292 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/0.6094, allocations: 4 kB / 0.5292 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004023/0.6134, allocations: 2.37 MB / 0.5315 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000745/0.6142, allocations: 286.5 kB / 0.5318 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005497/0.6147, allocations: 24 kB / 0.5318 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.6159, allocations: 51.94 kB / 0.5318 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.616, allocations: 72.39 kB / 0.5319 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.712e-05/0.6161, allocations: 47.98 kB / 0.532 GB, free: 13.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003373/0.6195, allocations: 1.652 MB / 0.5336 GB, free: 11.57 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.6195, allocations: 0 / 0.5336 GB, free: 11.57 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003801/0.6233, allocations: 0.6249 MB / 0.5342 GB, free: 10.94 MB / 414.1 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.0004792/0.6238, allocations: 163 kB / 0.5343 GB, free: 10.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005522/0.6294, allocations: 2.611 MB / 0.5369 GB, free: 8.176 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/0.6294, allocations: 384 / 0.5369 GB, free: 8.176 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001488/0.6309, allocations: 0.6304 MB / 0.5375 GB, free: 7.543 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002901/0.6338, allocations: 358.3 kB / 0.5378 GB, free: 7.199 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01645/0.6503, allocations: 7.944 MB / 0.5456 GB, free: 15.17 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004449/0.6548, allocations: 2.559 MB / 0.5481 GB, free: 12.58 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003864/0.6586, allocations: 1.117 MB / 0.5492 GB, free: 11.46 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006693/0.6593, allocations: 167.4 kB / 0.5494 GB, free: 11.3 MB / 430.1 MB Notification: Performance of SimCode: time 1.704e-06/0.6594, allocations: 0 / 0.5494 GB, free: 11.3 MB / 430.1 MB Notification: Performance of Templates: time 0.05256/0.7119, allocations: 21.59 MB / 0.5704 GB, free: 5.844 MB / 446.1 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)