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.001186/0.001186, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001451/0.001451, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 223.2 MB / 239.9 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1635/0.1635, allocations: 9.087 MB / 300.1 MB, free: 2.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003099/0.00031, allocations: 8 kB / 363 MB, free: 13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1035, allocations: 52.42 MB / 415.4 MB, free: 8.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.1802/0.2837, allocations: 16.46 MB / 431.9 MB, free: 34.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007476/0.2912, allocations: 4.55 MB / 436.4 MB, free: 32.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002335/0.2936, allocations: 67.25 kB / 436.5 MB, free: 32.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001834/0.2954, allocations: 0.7642 MB / 437.3 MB, free: 32.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005643/0.3011, allocations: 2.432 MB / 439.7 MB, free: 31.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005559/0.3017, allocations: 108.2 kB / 439.8 MB, free: 31.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001742/0.3034, allocations: 1.359 MB / 441.2 MB, free: 31.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007591/0.3042, allocations: 0.731 MB / 441.9 MB, free: 30.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005571/0.3048, allocations: 0.6346 MB / 442.5 MB, free: 30.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008177/0.3056, allocations: 0.9328 MB / 443.5 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00022/0.3058, allocations: 125.8 kB / 443.6 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009673/0.3068, allocations: 0.6456 MB / 444.2 MB, free: 30.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006897/0.3075, allocations: 1.02 MB / 445.2 MB, free: 29.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004211/0.3079, allocations: 0.6317 MB / 445.9 MB, free: 29.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0027/0.3106, allocations: 3.634 MB / 449.5 MB, free: 28.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.3107, allocations: 0 / 449.5 MB, free: 28.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3107, allocations: 2.875 kB / 449.5 MB, free: 28.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.537e-05/0.3108, allocations: 0 / 449.5 MB, free: 28.53 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.004327/0.3151, allocations: 2.71 MB / 452.2 MB, free: 26.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.3151, allocations: 9.469 kB / 452.2 MB, free: 26.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006925/0.3221, allocations: 2.174 MB / 454.4 MB, free: 26.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004004/0.3261, allocations: 1.273 MB / 455.7 MB, free: 25.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001605/0.3263, allocations: 146.1 kB / 455.8 MB, free: 25.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009734/0.3273, allocations: 180 kB / 456 MB, free: 25.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01307/0.3404, allocations: 8.067 MB / 464.1 MB, free: 22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-05/0.3405, allocations: 19.12 kB / 464.1 MB, free: 21.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003279/0.3408, allocations: 91.72 kB / 464.2 MB, free: 21.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004162/0.345, allocations: 1.998 MB / 466.2 MB, free: 21.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0167/0.3617, allocations: 7.15 MB / 473.3 MB, free: 19.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03916/0.401, allocations: 24.16 MB / 497.5 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005461/0.4065, allocations: 2.143 MB / 499.6 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00171/0.4082, allocations: 1.656 MB / 0.4895 GB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.485e-05/0.4083, allocations: 43.56 kB / 0.4896 GB, free: 12.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=135): time 4.508e-06/0.4083, allocations: 0 / 0.4896 GB, free: 12.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.01395/0.4223, allocations: 5.891 MB / 0.4953 GB, free: 6.668 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.648e-05/0.4224, allocations: 94.05 kB / 0.4954 GB, free: 6.559 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003547/0.426, allocations: 2.472 MB / 0.4978 GB, free: 4.051 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001828/0.4262, allocations: 45.7 kB / 0.4979 GB, free: 4 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00144/0.4276, allocations: 2.058 MB / 0.4999 GB, free: 1.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005542/0.4282, allocations: 0.5242 MB / 0.5004 GB, free: 1.379 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001733/0.4284, allocations: 80.03 kB / 0.5005 GB, free: 1.301 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003021/0.4287, allocations: 470.3 kB / 0.5009 GB, free: 0.8359 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002268/0.4309, allocations: 1.186 MB / 0.5021 GB, free: 15.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003614/0.4346, allocations: 3.317 MB / 0.5053 GB, free: 11.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003152/0.4378, allocations: 1.995 MB / 0.5073 GB, free: 9.277 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.583e-05/0.4378, allocations: 24 kB / 0.5073 GB, free: 9.254 MB / 382.1 MB Notification: Performance of matching and sorting (n=495) (initialization): time 0.008167/0.446, allocations: 4.461 MB / 0.5116 GB, free: 4.781 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.83e-05/0.4461, allocations: 36.97 kB / 0.5117 GB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.481e-05/0.4462, allocations: 76 kB / 0.5118 GB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000121/0.4463, allocations: 112 kB / 0.5119 GB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002658/0.449, allocations: 0.8617 MB / 0.5127 GB, free: 3.699 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001168/0.4491, allocations: 151.6 kB / 0.5128 GB, free: 3.551 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002333/0.4514, allocations: 179.9 kB / 0.513 GB, free: 3.375 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002849/0.4517, allocations: 235.9 kB / 0.5132 GB, free: 3.145 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 (467): * Single equations (assignments): 462 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002332/0.4541, allocations: 1.583 MB / 0.5148 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003217/0.4544, allocations: 205.3 kB / 0.515 GB, free: 1.348 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002869/0.4573, allocations: 1.77 MB / 0.5167 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001264/0.4574, allocations: 23.98 kB / 0.5167 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.4574, allocations: 4 kB / 0.5167 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.366e-05/0.4574, allocations: 7.969 kB / 0.5167 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009783/0.4672, allocations: 5.673 MB / 0.5223 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.369e-05/0.4673, allocations: 11.98 kB / 0.5223 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009183/0.4682, allocations: 219.8 kB / 0.5225 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.817e-05/0.4683, allocations: 16 kB / 0.5225 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.951e-05/0.4683, allocations: 32.06 kB / 0.5226 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.836e-05/0.4684, allocations: 23.92 kB / 0.5226 GB, free: 9.375 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.05e-05/0.4684, allocations: 15.92 kB / 0.5226 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004198/0.4726, allocations: 3.4 MB / 0.5259 GB, free: 5.547 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008338/0.4734, allocations: 310.3 kB / 0.5262 GB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000258/0.4737, allocations: 33.06 kB / 0.5262 GB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008143/0.4745, allocations: 55.95 kB / 0.5263 GB, free: 5.137 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.4747, allocations: 92.34 kB / 0.5264 GB, free: 5.047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.428e-05/0.4748, allocations: 51.98 kB / 0.5264 GB, free: 4.996 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002499/0.4773, allocations: 1.6 MB / 0.528 GB, free: 3.379 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4773, allocations: 0 / 0.528 GB, free: 3.379 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00288/0.4802, allocations: 0.6328 MB / 0.5286 GB, free: 2.746 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * 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 (113): * Single equations (assignments): 108 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003745/0.4806, allocations: 167.4 kB / 0.5288 GB, free: 2.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004574/0.4852, allocations: 2.714 MB / 0.5314 GB, free: 15.87 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/0.4852, allocations: 0 / 0.5314 GB, free: 15.87 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001183/0.4864, allocations: 0.7319 MB / 0.5321 GB, free: 15.13 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001859/0.4883, allocations: 367.9 kB / 0.5325 GB, free: 14.78 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01245/0.5007, allocations: 7.976 MB / 0.5403 GB, free: 6.672 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002724/0.5035, allocations: 2.626 MB / 0.5428 GB, free: 4.016 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002969/0.5065, allocations: 1.172 MB / 0.544 GB, free: 2.836 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004177/0.5069, allocations: 167.4 kB / 0.5441 GB, free: 2.672 MB / 414.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5069, allocations: 0 / 0.5441 GB, free: 2.672 MB / 414.1 MB Notification: Performance of Templates: time 0.03908/0.546, allocations: 21.34 MB / 0.565 GB, free: 13.47 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)