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.00559/0.00559, allocations: 102.2 kB / 15.73 MB, free: 6.449 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.001497/0.001497, allocations: 199.1 kB / 16.68 MB, free: 6.352 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.322/1.322, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1671/0.1671, allocations: 9.119 MB / 299.7 MB, free: 1.785 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 55.91 kB / 414.6 MB, free: 8.402 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2771/0.2783, allocations: 51.43 MB / 466.1 MB, free: 18.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.00857/0.2869, allocations: 9.533 MB / 475.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004926/0.2918, allocations: 2.743 MB / 478.3 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008143/0.2927, allocations: 36.56 kB / 478.4 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007479/0.2934, allocations: 395.5 kB / 478.8 MB, free: 9.238 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002399/0.2959, allocations: 1.428 MB / 480.2 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004153/0.2963, allocations: 171.7 kB / 480.4 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002977/0.2993, allocations: 2.721 MB / 483.1 MB, free: 6.531 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001421/0.3007, allocations: 0.9466 MB / 484 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001441/0.3022, allocations: 0.9765 MB / 485 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001564/0.3037, allocations: 1.4 MB / 486.4 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004187/0.3042, allocations: 248.8 kB / 486.7 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001477/0.3057, allocations: 0.841 MB / 487.5 MB, free: 4.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001171/0.3068, allocations: 1.326 MB / 488.8 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001427/0.3083, allocations: 1.718 MB / 490.5 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006333/0.3146, allocations: 5.4 MB / 495.9 MB, free: 14.24 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3146, allocations: 0 / 495.9 MB, free: 14.24 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3146, allocations: 1.531 kB / 495.9 MB, free: 14.24 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000134/0.3148, allocations: 0 / 495.9 MB, free: 14.24 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.008796/0.3236, allocations: 3.698 MB / 499.6 MB, free: 10.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.3236, allocations: 12.03 kB / 499.6 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007319/0.331, allocations: 1.859 MB / 0.4898 GB, free: 8.602 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003661/0.3347, allocations: 1.433 MB / 0.4912 GB, free: 7.121 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001738/0.3349, allocations: 164.4 kB / 0.4913 GB, free: 6.957 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008565/0.3357, allocations: 212.2 kB / 0.4915 GB, free: 6.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01358/0.3493, allocations: 8.678 MB / 0.5 GB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.76e-05/0.3495, allocations: 23.81 kB / 0.5 GB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003124/0.3498, allocations: 103.8 kB / 0.5001 GB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003995/0.3538, allocations: 2.091 MB / 0.5021 GB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01784/0.3716, allocations: 7.498 MB / 0.5095 GB, free: 3.91 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0426/0.4143, allocations: 27.03 MB / 0.5359 GB, free: 8.309 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004312/0.4186, allocations: 2.175 MB / 0.538 GB, free: 6.004 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00151/0.4202, allocations: 0.9497 MB / 0.5389 GB, free: 5.051 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008476/0.4287, allocations: 5.568 MB / 0.5444 GB, free: 15.08 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/0.4287, allocations: 43.5 kB / 0.5444 GB, free: 15.03 MB / 430.1 MB Notification: Performance of pre-optimization done (n=119): time 3.236e-06/0.4287, allocations: 0 / 0.5444 GB, free: 15.03 MB / 430.1 MB Notification: Performance of matching and sorting (n=135): time 0.01298/0.4417, allocations: 7.028 MB / 0.5513 GB, free: 7.832 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.4418, allocations: 60.41 kB / 0.5513 GB, free: 7.762 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004312/0.4461, allocations: 2.928 MB / 0.5542 GB, free: 4.816 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001879/0.4463, allocations: 49.62 kB / 0.5542 GB, free: 4.762 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001822/0.4481, allocations: 2.456 MB / 0.5566 GB, free: 2.281 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005283/0.4487, allocations: 0.5349 MB / 0.5571 GB, free: 1.742 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001129/0.4498, allocations: 0.8615 MB / 0.558 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.4499, allocations: 301.1 kB / 0.5583 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002192/0.4521, allocations: 1.355 MB / 0.5596 GB, free: 15.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004072/0.4562, allocations: 3.792 MB / 0.5633 GB, free: 10.19 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006217/0.4624, allocations: 5.494 MB / 0.5687 GB, free: 3.492 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-05/0.4625, allocations: 28 kB / 0.5687 GB, free: 3.465 MB / 446.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.009021/0.4715, allocations: 5.627 MB / 0.5742 GB, free: 13.74 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.291e-05/0.4716, allocations: 44 kB / 0.5742 GB, free: 13.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.026e-05/0.4717, allocations: 87.94 kB / 0.5743 GB, free: 13.61 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007113/0.4724, allocations: 380.8 kB / 0.5747 GB, free: 13.23 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002508/0.4749, allocations: 0.9163 MB / 0.5756 GB, free: 12.31 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006814/0.4818, allocations: 9.112 MB / 0.5845 GB, free: 2.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003157/0.4849, allocations: 227.8 kB / 0.5847 GB, free: 2.277 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004433/0.4854, allocations: 260 kB / 0.5849 GB, free: 2.023 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.002631/0.488, allocations: 1.691 MB / 0.5866 GB, free: 328 kB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003653/0.4884, allocations: 246.4 kB / 0.5868 GB, free: 80 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2598/0.7482, allocations: 2.256 MB / 0.589 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001868/0.7485, allocations: 41.58 kB / 0.5891 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.7485, allocations: 4.125 kB / 0.5891 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.501e-05/0.7485, allocations: 5.344 kB / 0.5891 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01054/0.7591, allocations: 5.771 MB / 0.5947 GB, free: 107.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/0.7591, allocations: 3.5 kB / 0.5947 GB, free: 107.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007432/0.7599, allocations: 175.8 kB / 0.5949 GB, free: 107.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004137/0.7603, allocations: 153 kB / 0.595 GB, free: 107.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.896e-05/0.7604, allocations: 25.62 kB / 0.5951 GB, free: 107.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003381/0.7638, allocations: 5.198 MB / 0.6001 GB, free: 102.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/0.7638, allocations: 5.812 kB / 0.6001 GB, free: 102.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00606/0.7699, allocations: 3.019 MB / 0.6031 GB, free: 100.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009531/0.7708, allocations: 329.1 kB / 0.6034 GB, free: 100.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002893/0.7711, allocations: 28.64 kB / 0.6034 GB, free: 100.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008215/0.772, allocations: 58.19 kB / 0.6035 GB, free: 100.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001864/0.7722, allocations: 83.45 kB / 0.6036 GB, free: 100.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.746e-05/0.7723, allocations: 44.78 kB / 0.6036 GB, free: 100.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00323/0.7755, allocations: 1.865 MB / 0.6054 GB, free: 100.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7755, allocations: 0 / 0.6054 GB, free: 100.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003612/0.7791, allocations: 0.7182 MB / 0.6061 GB, free: 99.99 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.0003592/0.7795, allocations: 168.2 kB / 0.6063 GB, free: 99.88 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005994/0.7855, allocations: 3.711 MB / 0.6099 GB, free: 98.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.7855, allocations: 1.125 kB / 0.6099 GB, free: 98.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001519/0.7871, allocations: 1.123 MB / 0.611 GB, free: 97.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002191/0.7893, allocations: 419.2 kB / 0.6114 GB, free: 97.54 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01367/0.8029, allocations: 6.871 MB / 0.6181 GB, free: 94.38 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003082/0.8061, allocations: 2.752 MB / 0.6208 GB, free: 93.16 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002623/0.8087, allocations: 1.208 MB / 0.622 GB, free: 93.05 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003912/0.8091, allocations: 176.5 kB / 0.6221 GB, free: 93.04 MB / 462.1 MB Notification: Performance of SimCode: time 1.192e-06/0.8091, allocations: 0 / 0.6221 GB, free: 93.04 MB / 462.1 MB Notification: Performance of Templates: time 0.0396/0.8487, allocations: 23.95 MB / 0.6455 GB, free: 71.5 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)