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.009514/0.009514, allocations: 107.4 kB / 15.74 MB, free: 6.02 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.002138/0.002138, allocations: 193.4 kB / 16.67 MB, free: 5.934 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.439/1.439, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04522/0.04522, allocations: 9.133 MB / 299.7 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002309/0.002309, allocations: 67.89 kB / 414.6 MB, free: 21.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1331, allocations: 51.44 MB / 466.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.01129/0.1444, allocations: 9.53 MB / 475.6 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006759/0.1512, allocations: 2.741 MB / 478.4 MB, free: 5.348 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001955/0.1532, allocations: 35.94 kB / 478.4 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001443/0.1547, allocations: 401.3 kB / 478.8 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003889/0.1586, allocations: 1.467 MB / 480.3 MB, free: 3.445 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005856/0.1592, allocations: 175.7 kB / 480.4 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003199/0.1624, allocations: 2.716 MB / 483.1 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001166/0.1636, allocations: 0.9602 MB / 484.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001328/0.1649, allocations: 0.9765 MB / 485.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001681/0.1666, allocations: 1.405 MB / 486.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003854/0.167, allocations: 248 kB / 486.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001535/0.1686, allocations: 0.8387 MB / 487.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001186/0.1698, allocations: 1.328 MB / 488.9 MB, free: 10.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001651/0.1714, allocations: 1.708 MB / 490.6 MB, free: 9.035 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007123/0.1786, allocations: 5.411 MB / 496 MB, free: 3.602 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.1786, allocations: 4 kB / 496 MB, free: 3.598 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1786, allocations: 0 / 496 MB, free: 3.598 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001295/0.1788, allocations: 0 / 496 MB, free: 3.598 MB / 366.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.007572/0.1863, allocations: 3.689 MB / 499.7 MB, free: 15.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.1864, allocations: 8.031 kB / 499.7 MB, free: 15.83 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006447/0.1928, allocations: 1.855 MB / 0.4898 GB, free: 13.97 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00234/0.1952, allocations: 1.433 MB / 0.4912 GB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.1953, allocations: 164.4 kB / 0.4914 GB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004066/0.1957, allocations: 216.2 kB / 0.4916 GB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01184/0.2076, allocations: 8.674 MB / 0.5 GB, free: 3.004 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-05/0.2077, allocations: 23.8 kB / 0.5001 GB, free: 2.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002981/0.208, allocations: 103.8 kB / 0.5002 GB, free: 2.879 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003043/0.2111, allocations: 2.095 MB / 0.5022 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2391/0.4501, allocations: 7.497 MB / 0.5095 GB, free: 38.11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03612/0.4863, allocations: 27.02 MB / 0.5359 GB, free: 19.6 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004017/0.4904, allocations: 2.174 MB / 0.538 GB, free: 18.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001489/0.4919, allocations: 0.9452 MB / 0.539 GB, free: 17.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008684/0.5006, allocations: 5.579 MB / 0.5444 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/0.5007, allocations: 47.56 kB / 0.5445 GB, free: 12.4 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 5.55e-06/0.5007, allocations: 0 / 0.5445 GB, free: 12.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=135): time 0.01297/0.5137, allocations: 7.031 MB / 0.5513 GB, free: 5.363 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.012e-05/0.5138, allocations: 60.41 kB / 0.5514 GB, free: 5.293 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003934/0.5177, allocations: 2.932 MB / 0.5542 GB, free: 2.344 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000117/0.5178, allocations: 45.7 kB / 0.5543 GB, free: 2.293 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001255/0.5191, allocations: 2.451 MB / 0.5567 GB, free: 15.85 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005699/0.5197, allocations: 0.538 MB / 0.5572 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001402/0.5211, allocations: 0.8537 MB / 0.558 GB, free: 14.45 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.5212, allocations: 309.1 kB / 0.5583 GB, free: 14.15 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002365/0.5236, allocations: 1.351 MB / 0.5597 GB, free: 12.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004147/0.5277, allocations: 3.791 MB / 0.5634 GB, free: 7.773 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006591/0.5344, allocations: 5.496 MB / 0.5687 GB, free: 1.082 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-05/0.5345, allocations: 28 kB / 0.5688 GB, free: 1.055 MB / 398.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.009829/0.5443, allocations: 5.626 MB / 0.5743 GB, free: 11.34 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.256e-05/0.5444, allocations: 48.17 kB / 0.5743 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001668/0.5446, allocations: 88 kB / 0.5744 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008911/0.5455, allocations: 375.2 kB / 0.5747 GB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003081/0.5486, allocations: 0.9163 MB / 0.5756 GB, free: 9.914 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007462/0.5561, allocations: 9.123 MB / 0.5845 GB, free: 116 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003274/0.5594, allocations: 220.8 kB / 0.5848 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006704/0.5601, allocations: 259.8 kB / 0.585 GB, free: 15.65 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.003045/0.5631, allocations: 1.691 MB / 0.5867 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000477/0.5636, allocations: 254.2 kB / 0.5869 GB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003832/0.5675, allocations: 2.243 MB / 0.5891 GB, free: 11.35 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001816/0.5677, allocations: 43.95 kB / 0.5891 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.879e-05/0.5677, allocations: 4 kB / 0.5891 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.275e-05/0.5677, allocations: 3.984 kB / 0.5891 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01228/0.58, allocations: 5.769 MB / 0.5948 GB, free: 5.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-05/0.58, allocations: 4.438 kB / 0.5948 GB, free: 5.406 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007646/0.5808, allocations: 175.8 kB / 0.5949 GB, free: 5.234 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004271/0.5812, allocations: 151.5 kB / 0.5951 GB, free: 5.078 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.32e-05/0.5814, allocations: 35.94 kB / 0.5951 GB, free: 5.043 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004183/0.5855, allocations: 5.177 MB / 0.6002 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/0.5856, allocations: 18.67 kB / 0.6002 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004746/0.5903, allocations: 3.017 MB / 0.6031 GB, free: 12.31 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009256/0.5913, allocations: 335.5 kB / 0.6035 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005852/0.5919, allocations: 23.98 kB / 0.6035 GB, free: 11.94 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.593, allocations: 59.94 kB / 0.6035 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.5932, allocations: 76.78 kB / 0.6036 GB, free: 11.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.877e-05/0.5933, allocations: 43.98 kB / 0.6037 GB, free: 11.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003646/0.5969, allocations: 1.87 MB / 0.6055 GB, free: 9.887 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.597, allocations: 4 kB / 0.6055 GB, free: 9.883 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004013/0.601, allocations: 0.7225 MB / 0.6062 GB, free: 9.164 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.0004559/0.6014, allocations: 164.8 kB / 0.6063 GB, free: 8.996 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006087/0.6075, allocations: 3.708 MB / 0.61 GB, free: 5.25 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.158e-05/0.6076, allocations: 3.938 kB / 0.61 GB, free: 5.246 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001725/0.6093, allocations: 1.124 MB / 0.6111 GB, free: 4.082 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002558/0.6119, allocations: 419.2 kB / 0.6115 GB, free: 3.688 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01384/0.6257, allocations: 6.869 MB / 0.6182 GB, free: 12.75 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003953/0.6297, allocations: 2.746 MB / 0.6209 GB, free: 9.977 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003242/0.633, allocations: 1.217 MB / 0.622 GB, free: 8.754 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006763/0.6337, allocations: 179.3 kB / 0.6222 GB, free: 8.578 MB / 462.1 MB Notification: Performance of SimCode: time 1.092e-06/0.6337, allocations: 0 / 0.6222 GB, free: 8.578 MB / 462.1 MB Notification: Performance of Templates: time 0.04805/0.6818, allocations: 23.95 MB / 0.6456 GB, free: 0.7617 MB / 478.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)