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/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.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.001065/0.001065, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.00106/0.00106, allocations: 191.4 kB / 17.34 MB, free: 5.695 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.256/1.256, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04336/0.04336, allocations: 9.112 MB / 300.3 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 59.91 kB / 415.3 MB, free: 21.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08819/0.08938, allocations: 51.44 MB / 466.7 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.009917/0.09934, allocations: 9.54 MB / 476.3 MB, free: 8.199 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005751/0.1051, allocations: 2.737 MB / 479 MB, free: 5.449 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001099/0.1063, allocations: 39.94 kB / 479.1 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008602/0.1071, allocations: 397.3 kB / 479.4 MB, free: 5.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003069/0.1103, allocations: 1.427 MB / 480.9 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000454/0.1107, allocations: 167.7 kB / 481 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002847/0.1136, allocations: 2.72 MB / 483.8 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001178/0.1148, allocations: 0.9641 MB / 484.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001202/0.116, allocations: 0.9726 MB / 485.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001591/0.1176, allocations: 1.401 MB / 487.1 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003971/0.118, allocations: 248 kB / 487.3 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001464/0.1195, allocations: 0.8426 MB / 488.2 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001071/0.1206, allocations: 1.328 MB / 489.5 MB, free: 10.9 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001316/0.1219, allocations: 1.712 MB / 491.2 MB, free: 9.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005226/0.1271, allocations: 5.372 MB / 496.6 MB, free: 3.789 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.1271, allocations: 0 / 496.6 MB, free: 3.789 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1272, allocations: 0 / 496.6 MB, free: 3.789 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001329/0.1273, allocations: 0 / 496.6 MB, free: 3.789 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.007003/0.1343, allocations: 3.602 MB / 0.4885 GB, free: 124 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.1344, allocations: 12.03 kB / 0.4885 GB, free: 112 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007158/0.1415, allocations: 1.829 MB / 0.4903 GB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002994/0.1446, allocations: 1.429 MB / 0.4917 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001329/0.1447, allocations: 160.4 kB / 0.4918 GB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004865/0.1452, allocations: 212.2 kB / 0.492 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01216/0.1574, allocations: 8.678 MB / 0.5005 GB, free: 3.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.897e-05/0.1575, allocations: 35.72 kB / 0.5005 GB, free: 3.285 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003087/0.1578, allocations: 103.8 kB / 0.5006 GB, free: 3.184 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003139/0.161, allocations: 2.091 MB / 0.5027 GB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2304/0.3914, allocations: 7.501 MB / 0.51 GB, free: 38.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03435/0.4258, allocations: 26.94 MB / 0.5363 GB, free: 19.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003991/0.4298, allocations: 2.18 MB / 0.5384 GB, free: 18.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001386/0.4312, allocations: 0.9453 MB / 0.5394 GB, free: 17.81 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007312/0.4386, allocations: 5.568 MB / 0.5448 GB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.176e-05/0.4386, allocations: 39.56 kB / 0.5448 GB, free: 12.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 3.687e-06/0.4386, allocations: 4 kB / 0.5448 GB, free: 12.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=135): time 0.01187/0.4505, allocations: 6.971 MB / 0.5516 GB, free: 5.461 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.01e-05/0.4506, allocations: 60.41 kB / 0.5517 GB, free: 5.391 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004032/0.4546, allocations: 2.924 MB / 0.5546 GB, free: 2.449 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001353/0.4548, allocations: 45.7 kB / 0.5546 GB, free: 2.398 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001032/0.4558, allocations: 2.354 MB / 0.5569 GB, free: 44 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000563/0.4564, allocations: 0.5116 MB / 0.5574 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001357/0.4578, allocations: 0.8568 MB / 0.5582 GB, free: 14.67 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.375e-05/0.4579, allocations: 305.1 kB / 0.5585 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002199/0.4601, allocations: 1.351 MB / 0.5598 GB, free: 13.01 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003751/0.4638, allocations: 3.798 MB / 0.5636 GB, free: 7.984 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005986/0.4699, allocations: 5.497 MB / 0.5689 GB, free: 1.289 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.619e-05/0.47, allocations: 24 kB / 0.5689 GB, free: 1.266 MB / 398.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.009625/0.4796, allocations: 5.623 MB / 0.5744 GB, free: 11.56 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.142e-05/0.4797, allocations: 44 kB / 0.5745 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000152/0.4799, allocations: 84 kB / 0.5746 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007521/0.4806, allocations: 375.2 kB / 0.5749 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002812/0.4835, allocations: 0.9202 MB / 0.5758 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006693/0.4902, allocations: 9.108 MB / 0.5847 GB, free: 360 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003206/0.4934, allocations: 219.9 kB / 0.5849 GB, free: 140 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006515/0.4941, allocations: 259.9 kB / 0.5852 GB, free: 15.88 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.002958/0.4971, allocations: 1.697 MB / 0.5868 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004652/0.4975, allocations: 236.8 kB / 0.587 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003595/0.5011, allocations: 2.255 MB / 0.5893 GB, free: 11.58 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001999/0.5014, allocations: 35.97 kB / 0.5893 GB, free: 11.55 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.539e-05/0.5014, allocations: 4 kB / 0.5893 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.34e-05/0.5014, allocations: 7.969 kB / 0.5893 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01067/0.5121, allocations: 5.766 MB / 0.5949 GB, free: 5.652 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-05/0.5121, allocations: 4 kB / 0.5949 GB, free: 5.648 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007175/0.5129, allocations: 175.8 kB / 0.5951 GB, free: 5.477 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003829/0.5133, allocations: 154.8 kB / 0.5952 GB, free: 5.316 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.703e-05/0.5134, allocations: 31.94 kB / 0.5953 GB, free: 5.285 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003823/0.5172, allocations: 5.184 MB / 0.6003 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.5172, allocations: 7.938 kB / 0.6003 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004261/0.5215, allocations: 3.001 MB / 0.6033 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007332/0.5222, allocations: 314 kB / 0.6036 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004965/0.5227, allocations: 27.83 kB / 0.6036 GB, free: 12.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.5239, allocations: 63.86 kB / 0.6037 GB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001635/0.5241, allocations: 76.91 kB / 0.6037 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.607e-05/0.5241, allocations: 47.98 kB / 0.6038 GB, free: 12.04 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003176/0.5273, allocations: 1.866 MB / 0.6056 GB, free: 10.16 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5273, allocations: 0 / 0.6056 GB, free: 10.16 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003668/0.531, allocations: 0.7239 MB / 0.6063 GB, free: 9.445 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.0004234/0.5314, allocations: 167.4 kB / 0.6065 GB, free: 9.277 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005871/0.5373, allocations: 3.707 MB / 0.6101 GB, free: 5.531 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.5374, allocations: 4.125 kB / 0.6101 GB, free: 5.527 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00154/0.5389, allocations: 1.126 MB / 0.6112 GB, free: 4.363 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002447/0.5414, allocations: 411 kB / 0.6116 GB, free: 3.973 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01331/0.5547, allocations: 7.157 MB / 0.6186 GB, free: 12.76 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004025/0.5588, allocations: 2.761 MB / 0.6213 GB, free: 9.969 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008439/0.5596, allocations: 219.4 kB / 0.6215 GB, free: 9.754 MB / 462.1 MB Notification: Performance of SimCode: time 7.91e-07/0.5597, allocations: 7.938 kB / 0.6215 GB, free: 9.746 MB / 462.1 MB Notification: Performance of Templates: time 0.3301/0.8898, allocations: 110.8 MB / 0.7297 GB, free: 179.3 MB / 0.5294 GB 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)