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.001153/0.001153, 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.001319/0.00132, allocations: 193.7 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.43/1.43, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2175/0.2175, allocations: 9.123 MB / 299.5 MB, free: 1.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 67.89 kB / 361.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1033, allocations: 51.44 MB / 413.4 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.008919/0.1123, allocations: 8.189 MB / 421.6 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1935/0.3058, allocations: 2.505 MB / 424.1 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002082/0.308, allocations: 33.69 kB / 424.1 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001313/0.3094, allocations: 352.1 kB / 424.5 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003883/0.3133, allocations: 1.321 MB / 425.8 MB, free: 36.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005509/0.3138, allocations: 119.1 kB / 425.9 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002915/0.3168, allocations: 2.434 MB / 428.3 MB, free: 35.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001162/0.3179, allocations: 0.8081 MB / 429.1 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001116/0.3191, allocations: 0.8534 MB / 430 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001371/0.3205, allocations: 1.261 MB / 431.2 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004043/0.3209, allocations: 221.2 kB / 431.5 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001507/0.3224, allocations: 0.8056 MB / 432.3 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009709/0.3234, allocations: 1.21 MB / 433.5 MB, free: 34.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001305/0.3247, allocations: 1.55 MB / 435 MB, free: 33.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004406/0.3291, allocations: 4.7 MB / 439.7 MB, free: 32.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.3291, allocations: 3.094 kB / 439.7 MB, free: 32.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.719e-06/0.3291, allocations: 0 / 439.7 MB, free: 32.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.35e-05/0.3292, allocations: 0 / 439.7 MB, free: 32.03 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.005813/0.3351, allocations: 3.26 MB / 443 MB, free: 30.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.3351, allocations: 10.03 kB / 443 MB, free: 30.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006242/0.3414, allocations: 1.765 MB / 444.8 MB, free: 29.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002012/0.3434, allocations: 1.293 MB / 446.1 MB, free: 29.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.094e-05/0.3435, allocations: 141.3 kB / 446.2 MB, free: 28.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003395/0.3438, allocations: 189.3 kB / 446.4 MB, free: 28.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009553/0.3534, allocations: 8.057 MB / 454.4 MB, free: 25.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.326e-05/0.3535, allocations: 28.59 kB / 454.5 MB, free: 25.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002556/0.3538, allocations: 88.98 kB / 454.6 MB, free: 25.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002901/0.3567, allocations: 2.001 MB / 456.6 MB, free: 25.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01313/0.3698, allocations: 7.133 MB / 463.7 MB, free: 22.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03585/0.4057, allocations: 24.16 MB / 487.8 MB, free: 6.844 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004487/0.4103, allocations: 2.155 MB / 490 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001108/0.4114, allocations: 0.7207 MB / 490.7 MB, free: 4.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005474/0.4169, allocations: 3.985 MB / 494.7 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.643e-05/0.417, allocations: 43.5 kB / 494.8 MB, free: 324 kB / 350.1 MB Notification: Performance of pre-optimization done (n=114): time 4.198e-06/0.417, allocations: 0 / 494.8 MB, free: 324 kB / 350.1 MB Notification: Performance of matching and sorting (n=117): time 0.009834/0.4268, allocations: 4.378 MB / 499.1 MB, free: 11.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.48e-05/0.4269, allocations: 68.41 kB / 499.2 MB, free: 11.8 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00431/0.4312, allocations: 2.573 MB / 0.49 GB, free: 9.199 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000137/0.4314, allocations: 43.89 kB / 0.4901 GB, free: 9.152 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001388/0.4328, allocations: 2.117 MB / 0.4921 GB, free: 7.031 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004868/0.4333, allocations: 460.7 kB / 0.4926 GB, free: 6.586 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001202/0.4345, allocations: 0.7473 MB / 0.4933 GB, free: 5.832 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.541e-05/0.4346, allocations: 309.1 kB / 0.4936 GB, free: 5.527 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001973/0.4366, allocations: 1.163 MB / 0.4947 GB, free: 4.363 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003313/0.4399, allocations: 3.322 MB / 0.498 GB, free: 15.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005468/0.4454, allocations: 4.781 MB / 0.5026 GB, free: 10.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.14e-05/0.4455, allocations: 27.94 kB / 0.5027 GB, free: 10.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008242/0.4537, allocations: 4.431 MB / 0.507 GB, free: 5.688 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.661e-05/0.4538, allocations: 39.98 kB / 0.507 GB, free: 5.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001248/0.454, allocations: 76 kB / 0.5071 GB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001153/0.4541, allocations: 100 kB / 0.5072 GB, free: 5.477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002647/0.4568, allocations: 0.8461 MB / 0.508 GB, free: 4.629 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001235/0.4569, allocations: 147.4 kB / 0.5082 GB, free: 4.484 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002577/0.4595, allocations: 180.3 kB / 0.5083 GB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004349/0.4599, allocations: 230.6 kB / 0.5085 GB, free: 4.086 MB / 382.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.002509/0.4625, allocations: 1.57 MB / 0.5101 GB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004136/0.4629, allocations: 213.5 kB / 0.5103 GB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002545/0.4654, allocations: 1.416 MB / 0.5117 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000135/0.4656, allocations: 23.98 kB / 0.5117 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.345e-06/0.4656, allocations: 3.938 kB / 0.5117 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.282e-05/0.4656, allocations: 7.969 kB / 0.5117 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00972/0.4753, allocations: 4.788 MB / 0.5164 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-05/0.4754, allocations: 4 kB / 0.5164 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008762/0.4763, allocations: 179.8 kB / 0.5166 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.982e-05/0.4763, allocations: 8.688 kB / 0.5166 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.935e-05/0.4764, allocations: 34.64 kB / 0.5166 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.4e-05/0.4765, allocations: 15.94 kB / 0.5166 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.4765, allocations: 4 kB / 0.5166 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003568/0.48, allocations: 2.373 MB / 0.5189 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007771/0.4808, allocations: 294.4 kB / 0.5192 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005957/0.4814, allocations: 26.64 kB / 0.5192 GB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/0.4825, allocations: 47.95 kB / 0.5193 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.4827, allocations: 72.45 kB / 0.5194 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.259e-05/0.4828, allocations: 43.92 kB / 0.5194 GB, free: 8.742 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003363/0.4862, allocations: 1.655 MB / 0.521 GB, free: 7.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4862, allocations: 0 / 0.521 GB, free: 7.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003714/0.4899, allocations: 0.62 MB / 0.5216 GB, free: 6.453 MB / 398.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.0004462/0.4903, allocations: 157.6 kB / 0.5218 GB, free: 6.289 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00621/0.4966, allocations: 3.25 MB / 0.5249 GB, free: 3.066 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.344e-05/0.4966, allocations: 0 / 0.5249 GB, free: 3.066 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00103/0.4976, allocations: 0.6377 MB / 0.5256 GB, free: 2.43 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002718/0.5004, allocations: 379.7 kB / 0.5259 GB, free: 2.082 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01424/0.5146, allocations: 6.442 MB / 0.5322 GB, free: 11.56 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004465/0.5191, allocations: 2.559 MB / 0.5347 GB, free: 8.973 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003476/0.5226, allocations: 1.121 MB / 0.5358 GB, free: 7.848 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006167/0.5233, allocations: 163.4 kB / 0.536 GB, free: 7.688 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5233, allocations: 0 / 0.536 GB, free: 7.688 MB / 414.1 MB Notification: Performance of Templates: time 0.05003/0.5733, allocations: 22.35 MB / 0.5578 GB, free: 1.531 MB / 430.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)