Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [: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 3.2.2+maint.om/package.mo): time 0.001377/0.001377, allocations: 192.7 kB / 8.135 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.14/1.14, allocations: 194.2 MB / 202.8 MB, free: 8.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00178/0.00178, allocations: 119.3 kB / 247.8 MB, free: 6.312 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.12e-05/1.139e-05, allocations: 4 kB / 297.6 MB, free: 8.004 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.104, allocations: 44.49 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.241/0.345, allocations: 97.04 MB / 439.1 MB, free: 14.32 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001784/0.3452, allocations: 71.41 kB / 439.2 MB, free: 14.29 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.3952/0.7404, allocations: 120.8 MB / 0.5469 GB, free: 73.44 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.998e-05/0.7405, allocations: 49.72 kB / 0.5469 GB, free: 73.43 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004896/0.7454, allocations: 2.742 MB / 0.5496 GB, free: 71.93 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.986e-05/0.7455, allocations: 10.47 kB / 0.5496 GB, free: 71.93 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006426/0.7462, allocations: 402.2 kB / 0.55 GB, free: 71.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003916/0.7501, allocations: 2.375 MB / 0.5523 GB, free: 71.07 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/0.7501, allocations: 22.16 kB / 0.5523 GB, free: 71.07 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001933/0.7503, allocations: 35.84 kB / 0.5523 GB, free: 71.07 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001221/0.7516, allocations: 0.6873 MB / 0.553 GB, free: 71.07 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.7528, allocations: 0.7216 MB / 0.5537 GB, free: 70.94 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.7529, allocations: 3.938 kB / 0.5537 GB, free: 70.93 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.395e-05/0.7529, allocations: 0 / 0.5537 GB, free: 70.93 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.785e-05/0.753, allocations: 23.38 kB / 0.5538 GB, free: 70.93 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005839/0.7588, allocations: 3.091 MB / 0.5568 GB, free: 70.4 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004631/0.7593, allocations: 354.7 kB / 0.5571 GB, free: 70.38 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005847/0.7599, allocations: 0.5316 MB / 0.5576 GB, free: 70.36 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03421/0.7941, allocations: 36.04 MB / 0.5928 GB, free: 43.67 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004369/0.7946, allocations: 292.7 kB / 0.5931 GB, free: 43.55 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 2.605e-06/0.7946, allocations: 0 / 0.5931 GB, free: 43.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.001459/0.7961, allocations: 0.7772 MB / 0.5939 GB, free: 43.22 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.764e-05/0.7962, allocations: 271.6 kB / 0.5941 GB, free: 42.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004148/0.8003, allocations: 2.321 MB / 0.5964 GB, free: 41.99 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.998e-05/0.8004, allocations: 29.8 kB / 0.5964 GB, free: 41.96 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004778/0.8009, allocations: 0.6474 MB / 0.597 GB, free: 41.55 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/0.801, allocations: 159.2 kB / 0.5972 GB, free: 41.43 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.362e-05/0.8011, allocations: 1.094 kB / 0.5972 GB, free: 41.43 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.688e-05/0.8011, allocations: 340.3 kB / 0.5975 GB, free: 41.11 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003154/0.8015, allocations: 173.3 kB / 0.5977 GB, free: 41.04 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004903/0.802, allocations: 0.572 MB / 0.5982 GB, free: 40.42 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004522/0.8024, allocations: 280.8 kB / 0.5985 GB, free: 40.3 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.8024, allocations: 3.844 kB / 0.5985 GB, free: 40.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001547/0.804, allocations: 1.031 MB / 0.5995 GB, free: 39.89 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.804, allocations: 7.938 kB / 0.5995 GB, free: 39.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001152/0.8041, allocations: 78.69 kB / 0.5996 GB, free: 39.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.13e-05/0.8042, allocations: 19.59 kB / 0.5996 GB, free: 39.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007513/0.8049, allocations: 219.9 kB / 0.5998 GB, free: 39.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.525e-05/0.805, allocations: 32.45 kB / 0.5999 GB, free: 39.85 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001289/0.8062, allocations: 109.9 kB / 0.6 GB, free: 39.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.8064, allocations: 70.77 kB / 0.6 GB, free: 39.79 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000153/0.8065, allocations: 144.1 kB / 0.6002 GB, free: 39.66 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003565/0.8069, allocations: 386.2 kB / 0.6005 GB, free: 39.46 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003719/0.8106, allocations: 1.37 MB / 0.6019 GB, free: 38.93 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.8106, allocations: 7.875 kB / 0.6019 GB, free: 38.93 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.8106, allocations: 0 / 0.6019 GB, free: 38.93 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.8107, allocations: 3.797 kB / 0.6019 GB, free: 38.93 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002929/0.8136, allocations: 2.004 MB / 0.6038 GB, free: 38.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001209/0.8137, allocations: 70.39 kB / 0.6039 GB, free: 38.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000552/0.8143, allocations: 113.8 kB / 0.604 GB, free: 38.03 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/0.8143, allocations: 7.344 kB / 0.604 GB, free: 38.02 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.622e-05/0.8144, allocations: 26.08 kB / 0.6041 GB, free: 38.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.8144, allocations: 7.125 kB / 0.6041 GB, free: 38.02 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.8144, allocations: 0 / 0.6041 GB, free: 38.02 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001389/0.8158, allocations: 1.179 MB / 0.6052 GB, free: 37.37 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008562/0.8167, allocations: 0.5607 MB / 0.6058 GB, free: 36.96 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005844/0.8173, allocations: 7.156 kB / 0.6058 GB, free: 36.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009798/0.8182, allocations: 49.52 kB / 0.6058 GB, free: 36.95 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.8184, allocations: 58.67 kB / 0.6059 GB, free: 36.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.509e-05/0.8185, allocations: 39.86 kB / 0.6059 GB, free: 36.93 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002487/0.821, allocations: 1.717 MB / 0.6076 GB, free: 36.22 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001814/0.8228, allocations: 0.6104 MB / 0.6082 GB, free: 36.14 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00134/0.8241, allocations: 0.9323 MB / 0.6091 GB, free: 35.87 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.8252, allocations: 0.6743 MB / 0.6097 GB, free: 35.57 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.8252, allocations: 0 / 0.6097 GB, free: 35.57 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005411/0.8257, allocations: 396.3 kB / 0.6101 GB, free: 35.36 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001828/0.8276, allocations: 482.8 kB / 0.6106 GB, free: 35.13 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006015/0.8336, allocations: 3.133 MB / 0.6136 GB, free: 33.84 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00167/0.8353, allocations: 1.903 MB / 0.6155 GB, free: 33.06 MB / 394.7 MB Notification: Performance of SimCode: time 1.283e-06/0.8353, allocations: 0 / 0.6155 GB, free: 33.06 MB / 394.7 MB Notification: Performance of Templates: time 0.05133/0.8866, allocations: 28.96 MB / 0.6438 GB, free: 6.59 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)