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.007975/0.007975, allocations: 100.9 kB / 15.73 MB, free: 5.988 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.001237/0.001237, allocations: 192.5 kB / 16.67 MB, free: 5.91 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2008/0.2008, allocations: 9.113 MB / 299.6 MB, free: 1.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 59.91 kB / 414.6 MB, free: 8.371 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3123/0.3136, allocations: 51.44 MB / 466.1 MB, free: 18.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.00996/0.3236, allocations: 9.532 MB / 475.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006437/0.33, allocations: 2.747 MB / 478.4 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001516/0.3316, allocations: 37.91 kB / 478.4 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009321/0.3325, allocations: 397.6 kB / 478.8 MB, free: 9.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003286/0.3359, allocations: 1.464 MB / 480.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000481/0.3364, allocations: 175.9 kB / 480.4 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002849/0.3392, allocations: 2.735 MB / 483.2 MB, free: 6.465 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001035/0.3403, allocations: 0.9392 MB / 484.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001111/0.3414, allocations: 0.9701 MB / 485.1 MB, free: 5.246 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001556/0.343, allocations: 1.408 MB / 486.5 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000448/0.3434, allocations: 249.2 kB / 486.7 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001627/0.3451, allocations: 0.8375 MB / 487.6 MB, free: 4.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00122/0.3463, allocations: 1.338 MB / 488.9 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001652/0.348, allocations: 1.706 MB / 490.6 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007283/0.3552, allocations: 5.385 MB / 496 MB, free: 14.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3553, allocations: 0 / 496 MB, free: 14.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.746e-06/0.3553, allocations: 0 / 496 MB, free: 14.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001384/0.3554, allocations: 0 / 496 MB, free: 14.18 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.00791/0.3634, allocations: 3.602 MB / 499.6 MB, free: 10.51 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.3634, allocations: 15.97 kB / 499.6 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006354/0.3698, allocations: 1.825 MB / 0.4897 GB, free: 8.664 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002558/0.3723, allocations: 1.433 MB / 0.4911 GB, free: 7.184 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001264/0.3725, allocations: 164.4 kB / 0.4912 GB, free: 7.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004101/0.3729, allocations: 212.2 kB / 0.4914 GB, free: 6.812 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01221/0.3851, allocations: 8.678 MB / 0.4999 GB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.403e-05/0.3852, allocations: 23.72 kB / 0.4999 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002757/0.3855, allocations: 107.8 kB / 0.5 GB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003125/0.3886, allocations: 2.087 MB / 0.5021 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01419/0.4028, allocations: 7.502 MB / 0.5094 GB, free: 3.969 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03808/0.4409, allocations: 26.95 MB / 0.5357 GB, free: 8.438 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00456/0.4456, allocations: 2.179 MB / 0.5378 GB, free: 6.129 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001535/0.4471, allocations: 0.9514 MB / 0.5388 GB, free: 5.172 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008876/0.456, allocations: 5.547 MB / 0.5442 GB, free: 15.22 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.499e-05/0.4561, allocations: 47.5 kB / 0.5442 GB, free: 15.17 MB / 430.1 MB Notification: Performance of pre-optimization done (n=119): time 4.809e-06/0.4561, allocations: 0 / 0.5442 GB, free: 15.17 MB / 430.1 MB Notification: Performance of matching and sorting (n=135): time 0.01354/0.4696, allocations: 6.979 MB / 0.551 GB, free: 8.012 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.132e-05/0.4697, allocations: 60.41 kB / 0.5511 GB, free: 7.941 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004066/0.4738, allocations: 2.924 MB / 0.554 GB, free: 5 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.056e-05/0.4738, allocations: 45.7 kB / 0.554 GB, free: 4.949 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001549/0.4754, allocations: 2.356 MB / 0.5563 GB, free: 2.559 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004051/0.4758, allocations: 0.5168 MB / 0.5568 GB, free: 2.035 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00108/0.4769, allocations: 0.8492 MB / 0.5576 GB, free: 1.172 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.477, allocations: 301.1 kB / 0.5579 GB, free: 0.875 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002063/0.4791, allocations: 1.355 MB / 0.5593 GB, free: 15.51 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004207/0.4833, allocations: 3.795 MB / 0.563 GB, free: 10.49 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007397/0.4907, allocations: 5.499 MB / 0.5683 GB, free: 3.785 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.51e-05/0.4908, allocations: 28 kB / 0.5684 GB, free: 3.758 MB / 446.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.009977/0.5008, allocations: 5.61 MB / 0.5738 GB, free: 14.05 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.065e-05/0.5009, allocations: 44 kB / 0.5739 GB, free: 14 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-05/0.501, allocations: 87.94 kB / 0.574 GB, free: 13.92 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007175/0.5017, allocations: 368.8 kB / 0.5743 GB, free: 13.54 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002582/0.5043, allocations: 0.9202 MB / 0.5752 GB, free: 12.62 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00839/0.5127, allocations: 9.111 MB / 0.5841 GB, free: 2.816 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003831/0.5165, allocations: 223.9 kB / 0.5843 GB, free: 2.598 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004127/0.517, allocations: 252.2 kB / 0.5846 GB, free: 2.352 MB / 462.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.003732/0.5207, allocations: 1.702 MB / 0.5862 GB, free: 0.6367 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000422/0.5211, allocations: 240.8 kB / 0.5865 GB, free: 408 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3398/0.861, allocations: 2.249 MB / 0.5886 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001807/0.8612, allocations: 37.95 kB / 0.5887 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.8612, allocations: 4.125 kB / 0.5887 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.787e-05/0.8612, allocations: 6.359 kB / 0.5887 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01185/0.8731, allocations: 5.772 MB / 0.5943 GB, free: 107.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/0.8731, allocations: 6.75 kB / 0.5943 GB, free: 107.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007586/0.8739, allocations: 171.6 kB / 0.5945 GB, free: 107.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004518/0.8743, allocations: 150.3 kB / 0.5946 GB, free: 107.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.565e-05/0.8744, allocations: 29.17 kB / 0.5947 GB, free: 107.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003623/0.8781, allocations: 5.184 MB / 0.5997 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.136e-05/0.8781, allocations: 13 kB / 0.5997 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004898/0.883, allocations: 3.007 MB / 0.6027 GB, free: 101.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007796/0.8838, allocations: 321.1 kB / 0.603 GB, free: 101.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002352/0.884, allocations: 21.03 kB / 0.603 GB, free: 101.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007918/0.8848, allocations: 62.2 kB / 0.6031 GB, free: 101.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/0.885, allocations: 80.16 kB / 0.6031 GB, free: 101.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.37e-05/0.8851, allocations: 47.62 kB / 0.6032 GB, free: 101 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002988/0.8881, allocations: 1.868 MB / 0.605 GB, free: 100.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8881, allocations: 3.938 kB / 0.605 GB, free: 100.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003871/0.892, allocations: 0.716 MB / 0.6057 GB, free: 100.3 MB / 462.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.0003605/0.8923, allocations: 158.5 kB / 0.6059 GB, free: 100.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006688/0.899, allocations: 3.712 MB / 0.6095 GB, free: 98.59 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/0.8991, allocations: 0.9688 kB / 0.6095 GB, free: 98.59 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001824/0.9009, allocations: 1.122 MB / 0.6106 GB, free: 98 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002201/0.9031, allocations: 419.1 kB / 0.611 GB, free: 97.83 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01305/0.9162, allocations: 6.753 MB / 0.6176 GB, free: 94.81 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002436/0.9186, allocations: 2.754 MB / 0.6203 GB, free: 93.58 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002395/0.921, allocations: 1.209 MB / 0.6215 GB, free: 93.48 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003514/0.9214, allocations: 178.5 kB / 0.6216 GB, free: 93.46 MB / 462.1 MB Notification: Performance of SimCode: time 6.71e-07/0.9214, allocations: 0 / 0.6216 GB, free: 93.46 MB / 462.1 MB Notification: Performance of Templates: time 0.03942/0.9608, allocations: 23.95 MB / 0.645 GB, free: 72.07 MB / 462.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)