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.001066/0.001066, allocations: 88.41 kB / 15.36 MB, free: 0.7383 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.006393/0.006393, allocations: 171.4 kB / 16.26 MB, free: 6.613 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.35/1.35, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1967/0.1967, allocations: 9.115 MB / 300.5 MB, free: 2.758 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003023/0.0003023, allocations: 8 kB / 363.7 MB, free: 12.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09801/0.09833, allocations: 52.42 MB / 416.1 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.1943/0.2926, allocations: 27.37 MB / 443.5 MB, free: 26.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01211/0.3048, allocations: 6.192 MB / 449.7 MB, free: 23.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004499/0.3093, allocations: 99.53 kB / 449.8 MB, free: 23.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00109/0.3104, allocations: 335.3 kB / 450.1 MB, free: 23.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003073/0.3135, allocations: 1.33 MB / 451.5 MB, free: 23.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005363/0.3141, allocations: 131.6 kB / 451.6 MB, free: 23.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00336/0.3174, allocations: 3.792 MB / 455.4 MB, free: 21.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001198/0.3186, allocations: 0.8657 MB / 456.3 MB, free: 21.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009907/0.3196, allocations: 0.8082 MB / 457.1 MB, free: 21.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001403/0.3211, allocations: 1.408 MB / 458.5 MB, free: 20.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002832/0.3214, allocations: 142.9 kB / 458.6 MB, free: 20.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001117/0.3225, allocations: 0.7627 MB / 459.4 MB, free: 20.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007943/0.3233, allocations: 1.259 MB / 460.6 MB, free: 20.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009823/0.3243, allocations: 1.639 MB / 462.3 MB, free: 18.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00327/0.3276, allocations: 4.832 MB / 467.1 MB, free: 17.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3276, allocations: 0 / 467.1 MB, free: 17.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3276, allocations: 3.656 kB / 467.1 MB, free: 17.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.341e-05/0.3277, allocations: 3.25 kB / 467.1 MB, free: 17.4 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.004963/0.3327, allocations: 2.926 MB / 470 MB, free: 15.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.3327, allocations: 9.469 kB / 470 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007192/0.3399, allocations: 1.88 MB / 471.9 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00256/0.3425, allocations: 1.426 MB / 473.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001478/0.3426, allocations: 164.7 kB / 473.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005582/0.3432, allocations: 210.8 kB / 473.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0163/0.3595, allocations: 8.674 MB / 482.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.707e-05/0.3596, allocations: 25.97 kB / 482.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003182/0.3599, allocations: 104.5 kB / 482.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004038/0.364, allocations: 2.09 MB / 484.6 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01517/0.3792, allocations: 7.497 MB / 492.1 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0348/0.414, allocations: 27.1 MB / 0.507 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004817/0.4189, allocations: 2.175 MB / 0.5092 GB, free: 9.281 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001728/0.4206, allocations: 0.9453 MB / 0.5101 GB, free: 8.336 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01027/0.4309, allocations: 5.573 MB / 0.5155 GB, free: 2.363 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.243e-05/0.431, allocations: 43.56 kB / 0.5156 GB, free: 2.312 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 5.28e-06/0.431, allocations: 4 kB / 0.5156 GB, free: 2.309 MB / 382.1 MB Notification: Performance of matching and sorting (n=135): time 0.01423/0.4453, allocations: 6.963 MB / 0.5224 GB, free: 11.16 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.455e-05/0.4453, allocations: 64.41 kB / 0.5224 GB, free: 11.08 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004102/0.4495, allocations: 2.927 MB / 0.5253 GB, free: 8.137 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001182/0.4496, allocations: 45.7 kB / 0.5253 GB, free: 8.086 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001447/0.451, allocations: 2.356 MB / 0.5276 GB, free: 5.695 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004213/0.4515, allocations: 0.5129 MB / 0.5281 GB, free: 5.176 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004313/0.4519, allocations: 359 kB / 0.5285 GB, free: 4.816 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.606e-05/0.452, allocations: 301.1 kB / 0.5288 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002251/0.4543, allocations: 1.351 MB / 0.5301 GB, free: 3.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003676/0.458, allocations: 3.799 MB / 0.5338 GB, free: 14.13 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006953/0.4649, allocations: 5.498 MB / 0.5392 GB, free: 7.43 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.106e-05/0.465, allocations: 28 kB / 0.5392 GB, free: 7.402 MB / 414.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.009576/0.4746, allocations: 5.616 MB / 0.5447 GB, free: 1.691 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.883e-05/0.4747, allocations: 40 kB / 0.5447 GB, free: 1.652 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.795e-05/0.4748, allocations: 91.94 kB / 0.5448 GB, free: 1.562 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007261/0.4755, allocations: 366.8 kB / 0.5452 GB, free: 1.191 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002739/0.4783, allocations: 0.924 MB / 0.5461 GB, free: 272 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006541/0.4848, allocations: 8.263 MB / 0.5541 GB, free: 7.332 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00331/0.4882, allocations: 223.8 kB / 0.5543 GB, free: 7.113 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005676/0.4888, allocations: 260 kB / 0.5546 GB, free: 6.859 MB / 430.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.0032/0.492, allocations: 1.702 MB / 0.5562 GB, free: 5.145 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003736/0.4923, allocations: 232.9 kB / 0.5565 GB, free: 4.914 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003625/0.496, allocations: 2.255 MB / 0.5587 GB, free: 2.559 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000189/0.4962, allocations: 35.97 kB / 0.5587 GB, free: 2.523 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/0.4962, allocations: 8 kB / 0.5587 GB, free: 2.516 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/0.4962, allocations: 3.984 kB / 0.5587 GB, free: 2.512 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01104/0.5073, allocations: 5.793 MB / 0.5644 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.838e-06/0.5073, allocations: 4 kB / 0.5644 GB, free: 12.56 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000754/0.5081, allocations: 179.7 kB / 0.5645 GB, free: 12.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004217/0.5085, allocations: 154.8 kB / 0.5647 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.096e-05/0.5086, allocations: 27.98 kB / 0.5647 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003817/0.5124, allocations: 4.678 MB / 0.5693 GB, free: 7.121 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.5125, allocations: 7.938 kB / 0.5693 GB, free: 7.113 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004681/0.5171, allocations: 2.996 MB / 0.5722 GB, free: 4.008 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008379/0.518, allocations: 341.8 kB / 0.5726 GB, free: 3.652 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004863/0.5185, allocations: 27.98 kB / 0.5726 GB, free: 3.625 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.5196, allocations: 55.94 kB / 0.5726 GB, free: 3.57 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/0.5198, allocations: 92.89 kB / 0.5727 GB, free: 3.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.631e-05/0.5199, allocations: 40 kB / 0.5728 GB, free: 3.441 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003565/0.5234, allocations: 1.866 MB / 0.5746 GB, free: 1.566 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5235, allocations: 0 / 0.5746 GB, free: 1.566 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003853/0.5273, allocations: 0.7228 MB / 0.5753 GB, free: 0.8438 MB / 446.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.0004044/0.5277, allocations: 160.9 kB / 0.5754 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.2176/0.7454, allocations: 3.685 MB / 0.579 GB, free: 103.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.7454, allocations: 0 / 0.579 GB, free: 103.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00157/0.747, allocations: 1.124 MB / 0.5801 GB, free: 103.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00351/0.7505, allocations: 385.2 kB / 0.5805 GB, free: 103.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0117/0.7622, allocations: 8.589 MB / 0.5889 GB, free: 99.45 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00245/0.7647, allocations: 2.754 MB / 0.5916 GB, free: 98.68 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002815/0.7675, allocations: 1.205 MB / 0.5928 GB, free: 98.57 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000395/0.768, allocations: 182.1 kB / 0.5929 GB, free: 98.57 MB / 446.1 MB Notification: Performance of SimCode: time 1.613e-06/0.768, allocations: 0 / 0.5929 GB, free: 98.57 MB / 446.1 MB Notification: Performance of Templates: time 0.0535/0.8215, allocations: 25.28 MB / 0.6176 GB, free: 92.8 MB / 446.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)