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/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.001275/0.001274, allocations: 108.7 kB / 16.37 MB, free: 6.473 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.001297/0.001298, allocations: 193.1 kB / 17.31 MB, free: 5.824 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.302/1.302, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04271/0.04271, allocations: 9.109 MB / 300.3 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 59.91 kB / 363.4 MB, free: 6.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2268, allocations: 51.43 MB / 414.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.006868/0.2337, allocations: 8.193 MB / 423 MB, free: 16.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004439/0.2382, allocations: 2.515 MB / 425.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008193/0.239, allocations: 31.94 kB / 425.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006898/0.2397, allocations: 349.7 kB / 425.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002167/0.2419, allocations: 1.327 MB / 427.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002927/0.2423, allocations: 119.7 kB / 427.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00165/0.2439, allocations: 2.445 MB / 429.8 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006267/0.2446, allocations: 0.8054 MB / 430.6 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005994/0.2452, allocations: 0.8521 MB / 431.4 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009849/0.2462, allocations: 1.269 MB / 432.7 MB, free: 6.891 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002287/0.2464, allocations: 224 kB / 432.9 MB, free: 6.672 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009503/0.2473, allocations: 0.8036 MB / 433.7 MB, free: 5.867 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006096/0.248, allocations: 1.204 MB / 434.9 MB, free: 4.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000853/0.2488, allocations: 1.545 MB / 436.5 MB, free: 3.105 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004003/0.2528, allocations: 4.932 MB / 441.4 MB, free: 14.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.2529, allocations: 4 kB / 441.4 MB, free: 14.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.997e-06/0.2529, allocations: 4 kB / 441.4 MB, free: 14.15 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001046/0.253, allocations: 3.938 kB / 441.4 MB, free: 14.15 MB / 318.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.0068/0.2598, allocations: 3.261 MB / 444.7 MB, free: 10.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.2599, allocations: 8.031 kB / 444.7 MB, free: 10.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006092/0.266, allocations: 1.767 MB / 446.5 MB, free: 9.043 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002701/0.2687, allocations: 1.298 MB / 447.8 MB, free: 7.699 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/0.2688, allocations: 147.8 kB / 447.9 MB, free: 7.555 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003412/0.2692, allocations: 184.2 kB / 448.1 MB, free: 7.375 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01152/0.2807, allocations: 8.057 MB / 456.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-05/0.2808, allocations: 31.72 kB / 456.2 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000275/0.2811, allocations: 87.86 kB / 456.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003066/0.2841, allocations: 1.996 MB / 458.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.013/0.2972, allocations: 7.145 MB / 465.4 MB, free: 5.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03323/0.3304, allocations: 24.05 MB / 489.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004138/0.3346, allocations: 2.151 MB / 491.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001117/0.3357, allocations: 0.721 MB / 492.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006032/0.3418, allocations: 3.985 MB / 496.3 MB, free: 5.781 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.522e-05/0.3418, allocations: 47.5 kB / 496.3 MB, free: 5.727 MB / 366.1 MB Notification: Performance of pre-optimization done (n=114): time 2.945e-06/0.3419, allocations: 0 / 496.3 MB, free: 5.727 MB / 366.1 MB Notification: Performance of matching and sorting (n=117): time 0.008944/0.3508, allocations: 4.374 MB / 0.489 GB, free: 1.293 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/0.3509, allocations: 60.41 kB / 0.489 GB, free: 1.223 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003377/0.3543, allocations: 2.585 MB / 0.4916 GB, free: 14.6 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.175e-05/0.3543, allocations: 41.7 kB / 0.4916 GB, free: 14.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00134/0.3557, allocations: 2.119 MB / 0.4937 GB, free: 12.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003662/0.3561, allocations: 462 kB / 0.4941 GB, free: 11.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008881/0.357, allocations: 0.7462 MB / 0.4948 GB, free: 11.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.285e-05/0.3571, allocations: 305.1 kB / 0.4951 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001699/0.3588, allocations: 1.167 MB / 0.4963 GB, free: 9.727 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002988/0.3618, allocations: 3.32 MB / 0.4995 GB, free: 5.348 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2083/0.5701, allocations: 4.783 MB / 0.5042 GB, free: 84.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.956e-05/0.5703, allocations: 22.25 kB / 0.5042 GB, free: 84.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.007309/0.5776, allocations: 4.424 MB / 0.5085 GB, free: 83.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.753e-05/0.5777, allocations: 38.28 kB / 0.5086 GB, free: 83.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.64e-05/0.5777, allocations: 76.62 kB / 0.5086 GB, free: 83.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.078e-05/0.5778, allocations: 101.5 kB / 0.5087 GB, free: 83.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002577/0.5804, allocations: 0.8436 MB / 0.5096 GB, free: 83.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001521/0.5806, allocations: 151.9 kB / 0.5097 GB, free: 83.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002445/0.583, allocations: 177 kB / 0.5099 GB, free: 83.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003472/0.5834, allocations: 229.4 kB / 0.5101 GB, free: 83.56 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.002028/0.5854, allocations: 1.581 MB / 0.5116 GB, free: 82.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002794/0.5857, allocations: 202.8 kB / 0.5118 GB, free: 82.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001958/0.5877, allocations: 1.403 MB / 0.5132 GB, free: 82.28 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001233/0.5878, allocations: 29.28 kB / 0.5132 GB, free: 82.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.5878, allocations: 1.312 kB / 0.5132 GB, free: 82.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.5879, allocations: 8.016 kB / 0.5132 GB, free: 82.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006992/0.5949, allocations: 4.787 MB / 0.5179 GB, free: 80.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/0.5949, allocations: 7.562 kB / 0.5179 GB, free: 80.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007592/0.5957, allocations: 187.4 kB / 0.5181 GB, free: 80.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.115e-05/0.5957, allocations: 10.22 kB / 0.5181 GB, free: 80.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.499e-05/0.5958, allocations: 31.8 kB / 0.5181 GB, free: 80.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-05/0.5958, allocations: 12.66 kB / 0.5182 GB, free: 80.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/0.5958, allocations: 10.03 kB / 0.5182 GB, free: 80.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002595/0.5984, allocations: 2.355 MB / 0.5205 GB, free: 79.31 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005157/0.5989, allocations: 291.3 kB / 0.5207 GB, free: 79.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000226/0.5992, allocations: 31 kB / 0.5208 GB, free: 79.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007071/0.5999, allocations: 48.36 kB / 0.5208 GB, free: 79.15 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.6, allocations: 70.11 kB / 0.5209 GB, free: 79.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.536e-05/0.6001, allocations: 46.72 kB / 0.5209 GB, free: 79.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002042/0.6021, allocations: 1.654 MB / 0.5225 GB, free: 78.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6021, allocations: 4 kB / 0.5225 GB, free: 78.08 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002801/0.6049, allocations: 0.6216 MB / 0.5232 GB, free: 77.47 MB / 382.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.0003345/0.6053, allocations: 165.3 kB / 0.5233 GB, free: 77.31 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003695/0.609, allocations: 2.635 MB / 0.5259 GB, free: 74.99 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.609, allocations: 1.5 kB / 0.5259 GB, free: 74.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007187/0.6097, allocations: 0.6313 MB / 0.5265 GB, free: 74.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001715/0.6115, allocations: 380.8 kB / 0.5269 GB, free: 74.13 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009359/0.6208, allocations: 6.358 MB / 0.5331 GB, free: 67.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001941/0.6228, allocations: 2.554 MB / 0.5356 GB, free: 65.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002233/0.6251, allocations: 1.122 MB / 0.5367 GB, free: 64.06 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003383/0.6254, allocations: 163.4 kB / 0.5368 GB, free: 63.9 MB / 382.1 MB Notification: Performance of SimCode: time 1.222e-06/0.6254, allocations: 0 / 0.5368 GB, free: 63.9 MB / 382.1 MB Notification: Performance of Templates: time 0.03061/0.6561, allocations: 20.56 MB / 0.5569 GB, free: 43.54 MB / 382.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 -s cvode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe 2>&1)