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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002148/0.002148, allocations: 173.9 kB / 7.45 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.209/1.209, allocations: 221.4 MB / 229.3 MB, free: 3.07 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 96.64 kB / 280.1 MB, free: 1.344 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04338/0.04338, allocations: 8.84 MB / 339.7 MB, free: 5.766 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 9.508e-06/9.598e-06, allocations: 0 / 398.1 MB, free: 67.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06923/0.06926, allocations: 52.39 MB / 450.5 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2311/0.3004, allocations: 89.93 MB / 0.5278 GB, free: 3.535 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001824/0.3006, allocations: 77.61 kB / 0.5278 GB, free: 3.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1769/0.4775, allocations: 66.44 MB / 0.5927 GB, free: 8.027 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001214/0.4777, allocations: 63.98 kB / 0.5928 GB, free: 7.965 MB / 410.7 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.008123/0.4858, allocations: 2.972 MB / 0.5957 GB, free: 4.934 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.4859, allocations: 8.031 kB / 0.5957 GB, free: 4.926 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01028/0.4961, allocations: 1.68 MB / 0.5973 GB, free: 3.238 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004743/0.5009, allocations: 1.837 MB / 0.5991 GB, free: 1.355 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001696/0.5011, allocations: 108 kB / 0.5992 GB, free: 1.25 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001317/0.5024, allocations: 188 kB / 0.5994 GB, free: 1.066 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009869/0.5123, allocations: 5.753 MB / 0.605 GB, free: 11.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01374/0.5261, allocations: 7.623 MB / 0.6125 GB, free: 3.266 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001133/0.5262, allocations: 23.81 kB / 0.6125 GB, free: 3.242 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007683/0.527, allocations: 15.98 kB / 0.6125 GB, free: 3.227 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001399/0.5284, allocations: 1.002 MB / 0.6135 GB, free: 2.223 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03474/0.5632, allocations: 26.96 MB / 0.6398 GB, free: 6.449 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.5646, allocations: 0.8476 MB / 0.6407 GB, free: 5.586 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001341/0.5659, allocations: 0.8291 MB / 0.6415 GB, free: 4.754 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001079/0.567, allocations: 1.306 MB / 0.6427 GB, free: 3.223 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.5671, allocations: 47.56 kB / 0.6428 GB, free: 3.168 MB / 458.7 MB Notification: Performance of pre-optimization done (n=140): time 4.058e-06/0.5671, allocations: 4 kB / 0.6428 GB, free: 3.164 MB / 458.7 MB Notification: Performance of matching and sorting (n=160): time 0.1344/0.7015, allocations: 6.967 MB / 0.6496 GB, free: 175.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.899e-05/0.7015, allocations: 97.17 kB / 0.6497 GB, free: 175.1 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002831/0.7044, allocations: 2.078 MB / 0.6517 GB, free: 174.8 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001573/0.7046, allocations: 25.7 kB / 0.6517 GB, free: 174.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009039/0.7055, allocations: 2.29 MB / 0.654 GB, free: 173.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000418/0.7059, allocations: 0.5798 MB / 0.6545 GB, free: 173.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001691/0.7061, allocations: 0 / 0.6545 GB, free: 173.2 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000243/0.7063, allocations: 0.5364 MB / 0.6551 GB, free: 172.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001772/0.7081, allocations: 1.343 MB / 0.6564 GB, free: 172.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002649/0.7108, allocations: 3.876 MB / 0.6602 GB, free: 169.6 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002639/0.7134, allocations: 2.329 MB / 0.6624 GB, free: 169.6 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.044e-05/0.7135, allocations: 31.12 kB / 0.6625 GB, free: 169.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=587) (initialization): time 0.006991/0.7205, allocations: 5.268 MB / 0.6676 GB, free: 168.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.7205, allocations: 6.781 kB / 0.6676 GB, free: 168.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.281e-05/0.7206, allocations: 89.03 kB / 0.6677 GB, free: 168.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007078/0.7213, allocations: 396.9 kB / 0.6681 GB, free: 168.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003009/0.7243, allocations: 0.9684 MB / 0.669 GB, free: 168.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004923/0.7293, allocations: 8.012 MB / 0.6769 GB, free: 162.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003181/0.7325, allocations: 118 kB / 0.677 GB, free: 162.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004824/0.733, allocations: 273.1 kB / 0.6772 GB, free: 162.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 414 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (538): * Single equations (assignments): 528 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 14,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005732/0.7335, allocations: 347.4 kB / 0.6776 GB, free: 162 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002944/0.7338, allocations: 205.1 kB / 0.6778 GB, free: 161.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003175/0.737, allocations: 2.486 MB / 0.6802 GB, free: 161.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001609/0.7372, allocations: 25.5 kB / 0.6802 GB, free: 161.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.7372, allocations: 3.969 kB / 0.6802 GB, free: 161.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.7372, allocations: 3.422 kB / 0.6802 GB, free: 161.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009023/0.7463, allocations: 5.536 MB / 0.6856 GB, free: 160.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.7463, allocations: 3.969 kB / 0.6856 GB, free: 160.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009695/0.7473, allocations: 206.9 kB / 0.6858 GB, free: 160.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003688/0.7477, allocations: 140.8 kB / 0.686 GB, free: 160.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.856e-05/0.7478, allocations: 17.09 kB / 0.686 GB, free: 160.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00263/0.7504, allocations: 4.46 MB / 0.6903 GB, free: 156.4 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.633e-06/0.7505, allocations: 13.8 kB / 0.6903 GB, free: 156.4 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003695/0.7542, allocations: 3.653 MB / 0.6939 GB, free: 154.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005304/0.7547, allocations: 292.6 kB / 0.6942 GB, free: 154 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003203/0.7551, allocations: 10.78 kB / 0.6942 GB, free: 154 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009471/0.756, allocations: 36.94 kB / 0.6942 GB, free: 154 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/0.7562, allocations: 80.36 kB / 0.6943 GB, free: 153.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.615e-05/0.7563, allocations: 56.11 kB / 0.6944 GB, free: 153.9 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001898/0.7582, allocations: 1.393 MB / 0.6957 GB, free: 153.4 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003626/0.7618, allocations: 0.6416 MB / 0.6963 GB, free: 153.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 114 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 6,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003445/0.7622, allocations: 164.3 kB / 0.6965 GB, free: 153.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004861/0.767, allocations: 3.615 MB / 0.7 GB, free: 151.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.7671, allocations: 3.875 kB / 0.7 GB, free: 151.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001634/0.7687, allocations: 1.162 MB / 0.7012 GB, free: 151.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001266/0.77, allocations: 222.5 kB / 0.7014 GB, free: 151 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01265/0.7826, allocations: 5.635 MB / 0.7069 GB, free: 148.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004406/0.7871, allocations: 3.044 MB / 0.7099 GB, free: 146.9 MB / 458.7 MB Notification: Performance of SimCode: time 9.52e-07/0.7871, allocations: 0 / 0.7099 GB, free: 146.9 MB / 458.7 MB Notification: Performance of Templates: time 0.04854/0.8357, allocations: 24.59 MB / 0.7339 GB, free: 130.8 MB / 458.7 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)