Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDemo.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.SpringDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDemo") translateModel(PlanarMechanics.Examples.SpringDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001171/0.001175, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.444/1.444, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1836/0.1836, allocations: 9.123 MB / 299.5 MB, free: 1.75 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001384, allocations: 59.91 kB / 361.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1339, allocations: 51.44 MB / 413.4 MB, free: 9.574 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.2494/0.3833, allocations: 9.539 MB / 422.9 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006436/0.3898, allocations: 2.733 MB / 425.7 MB, free: 36.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001241/0.3911, allocations: 34.62 kB / 425.7 MB, free: 36.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008579/0.3919, allocations: 409.7 kB / 426.1 MB, free: 36.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003031/0.395, allocations: 1.422 MB / 427.5 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004884/0.3955, allocations: 162 kB / 427.7 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002637/0.3982, allocations: 2.706 MB / 430.4 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001144/0.3993, allocations: 0.9635 MB / 431.3 MB, free: 35.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001089/0.4004, allocations: 0.973 MB / 432.3 MB, free: 34.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00141/0.4018, allocations: 1.401 MB / 433.7 MB, free: 34.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004037/0.4023, allocations: 247.5 kB / 434 MB, free: 34.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001467/0.4037, allocations: 0.8412 MB / 434.8 MB, free: 34.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00093/0.4047, allocations: 1.332 MB / 436.1 MB, free: 33.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001182/0.4059, allocations: 1.711 MB / 437.8 MB, free: 32.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004062/0.4099, allocations: 5.107 MB / 442.9 MB, free: 30.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.41, allocations: 0 / 442.9 MB, free: 30.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.41, allocations: 0 / 442.9 MB, free: 30.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.3e-05/0.4101, allocations: 0 / 442.9 MB, free: 30.49 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: 1293 * Number of variables: 1293 Notification: Performance of Generate backend data structure: time 0.005792/0.4158, allocations: 3.603 MB / 446.6 MB, free: 28.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.4159, allocations: 9.5 kB / 446.6 MB, free: 28.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006275/0.4222, allocations: 1.829 MB / 448.4 MB, free: 28.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002159/0.4244, allocations: 1.428 MB / 449.8 MB, free: 27.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.468e-05/0.4245, allocations: 159.9 kB / 450 MB, free: 27.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003417/0.4248, allocations: 212.5 kB / 450.2 MB, free: 27.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01145/0.4363, allocations: 8.678 MB / 458.9 MB, free: 23.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001557/0.4365, allocations: 24.97 kB / 458.9 MB, free: 23.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004778/0.437, allocations: 102.4 kB / 459 MB, free: 23.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003692/0.4407, allocations: 2.094 MB / 461.1 MB, free: 22.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01719/0.4579, allocations: 7.493 MB / 468.6 MB, free: 20.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04234/0.5003, allocations: 27.08 MB / 495.7 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004869/0.5052, allocations: 2.177 MB / 497.8 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001742/0.5069, allocations: 0.9501 MB / 498.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009784/0.5167, allocations: 5.562 MB / 0.4925 GB, free: 6.871 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.441e-05/0.5168, allocations: 39.56 kB / 0.4926 GB, free: 6.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=119): time 3.898e-06/0.5168, allocations: 0 / 0.4926 GB, free: 6.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=135): time 0.01502/0.5318, allocations: 6.965 MB / 0.4994 GB, free: 15.69 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/0.5319, allocations: 60.41 kB / 0.4994 GB, free: 15.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005903/0.5379, allocations: 2.927 MB / 0.5023 GB, free: 12.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.946e-05/0.538, allocations: 45.7 kB / 0.5023 GB, free: 12.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001785/0.5398, allocations: 2.361 MB / 0.5046 GB, free: 10.26 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004852/0.5403, allocations: 0.5109 MB / 0.5051 GB, free: 9.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001508/0.5418, allocations: 0.8561 MB / 0.506 GB, free: 8.883 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.5419, allocations: 301.1 kB / 0.5063 GB, free: 8.586 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002381/0.5443, allocations: 1.347 MB / 0.5076 GB, free: 7.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004201/0.5485, allocations: 3.796 MB / 0.5113 GB, free: 2.203 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006609/0.5551, allocations: 5.493 MB / 0.5166 GB, free: 11.51 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.443e-05/0.5552, allocations: 31.94 kB / 0.5167 GB, free: 11.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.00967/0.5649, allocations: 5.615 MB / 0.5222 GB, free: 5.773 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.2e-05/0.565, allocations: 44 kB / 0.5222 GB, free: 5.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001398/0.5652, allocations: 87.94 kB / 0.5223 GB, free: 5.645 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007917/0.566, allocations: 381.7 kB / 0.5226 GB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002695/0.5687, allocations: 0.9202 MB / 0.5235 GB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007148/0.5758, allocations: 9.11 MB / 0.5324 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003541/0.5794, allocations: 223.8 kB / 0.5326 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006831/0.5801, allocations: 256 kB / 0.5329 GB, free: 10.07 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 392 * Number of states: 0 () * Number of discrete variables: 30 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.colorConnector_b[3],spring1.colorConnector_b[2],spring1.colorConnector_b[1],spring1.colorConnector_a[3],spring1.colorConnector_a[2],spring1.colorConnector_a[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 (505): * Single equations (assignments): 495 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(3,10,66.7%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003196/0.5833, allocations: 1.706 MB / 0.5346 GB, free: 8.359 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005442/0.5839, allocations: 240.8 kB / 0.5348 GB, free: 8.121 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003739/0.5876, allocations: 2.239 MB / 0.537 GB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001827/0.5878, allocations: 42.62 kB / 0.537 GB, free: 5.738 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-05/0.5878, allocations: 0 / 0.537 GB, free: 5.738 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.456e-05/0.5879, allocations: 11.97 kB / 0.537 GB, free: 5.727 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01181/0.5997, allocations: 5.789 MB / 0.5427 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-05/0.5997, allocations: 4 kB / 0.5427 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007265/0.6005, allocations: 171.7 kB / 0.5428 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004017/0.6009, allocations: 154.9 kB / 0.543 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.208e-05/0.601, allocations: 30.72 kB / 0.543 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004031/0.605, allocations: 5.194 MB / 0.5481 GB, free: 9.848 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.428e-06/0.6051, allocations: 11.88 kB / 0.5481 GB, free: 9.836 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004539/0.6096, allocations: 2.998 MB / 0.551 GB, free: 6.734 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00101/0.6106, allocations: 318 kB / 0.5513 GB, free: 6.402 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007628/0.6114, allocations: 24 kB / 0.5514 GB, free: 6.379 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001343/0.6128, allocations: 55.92 kB / 0.5514 GB, free: 6.324 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001768/0.613, allocations: 95.12 kB / 0.5515 GB, free: 6.234 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.517e-05/0.6131, allocations: 43.98 kB / 0.5515 GB, free: 6.191 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004056/0.6171, allocations: 1.866 MB / 0.5534 GB, free: 4.316 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6171, allocations: 0 / 0.5534 GB, free: 4.316 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0045/0.6216, allocations: 0.7173 MB / 0.5541 GB, free: 3.602 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (prismatic.s,prismatic.v) * 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 (103): * Single equations (assignments): 95 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,6,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004571/0.6221, allocations: 163.4 kB / 0.5542 GB, free: 3.438 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008192/0.6303, allocations: 4.584 MB / 0.5587 GB, free: 14.81 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/0.6304, allocations: 384 / 0.5587 GB, free: 14.81 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001654/0.632, allocations: 1.128 MB / 0.5598 GB, free: 13.64 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002868/0.6349, allocations: 420.5 kB / 0.5602 GB, free: 13.26 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01413/0.6491, allocations: 6.844 MB / 0.5669 GB, free: 6.359 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004519/0.6536, allocations: 2.75 MB / 0.5696 GB, free: 3.578 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003423/0.6571, allocations: 1.202 MB / 0.5707 GB, free: 2.371 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006155/0.6577, allocations: 183.4 kB / 0.5709 GB, free: 2.191 MB / 446.1 MB Notification: Performance of SimCode: time 1.312e-06/0.6577, allocations: 0 / 0.5709 GB, free: 2.191 MB / 446.1 MB Notification: Performance of Templates: time 0.2682/0.9259, allocations: 26.36 MB / 0.5967 GB, free: 134 MB / 462.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.SpringDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.SpringDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe 2>&1)