Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter") [: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.1+maint.om/package.mo): time 0.004172/0.004171, allocations: 178.9 kB / 7.449 MB, free: 2.52 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.217/1.217, allocations: 170.6 MB / 178.4 MB, free: 15.45 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001663/0.001663, allocations: 116 kB / 217.7 MB, free: 8.207 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.842e-06/6.882e-06, allocations: 0 / 261.8 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08137/0.08139, allocations: 38.76 MB / 300.5 MB, free: 3.887 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2872/0.3686, allocations: 92.91 MB / 393.4 MB, free: 8.008 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002624/0.369, allocations: 77.83 kB / 393.5 MB, free: 7.969 MB / 282.7 MB Notification: Performance of FrontEnd: time 0.368/0.737, allocations: 86.88 MB / 480.4 MB, free: 52.08 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.059e-05/0.7371, allocations: 19.34 kB / 480.4 MB, free: 52.08 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003217/0.7403, allocations: 1.632 MB / 482 MB, free: 51.3 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.7403, allocations: 6.094 kB / 482 MB, free: 51.3 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002316/0.7406, allocations: 197.9 kB / 482.2 MB, free: 51.2 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001625/0.7422, allocations: 1.219 MB / 483.4 MB, free: 50.78 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.205e-05/0.7423, allocations: 15.97 kB / 483.5 MB, free: 50.78 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.725e-05/0.7423, allocations: 22.94 kB / 483.5 MB, free: 50.77 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005574/0.7429, allocations: 357.8 kB / 483.8 MB, free: 50.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005564/0.7435, allocations: 409.9 kB / 484.2 MB, free: 50.69 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.7435, allocations: 6.953 kB / 484.2 MB, free: 50.69 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.518e-05/0.7435, allocations: 0 / 484.2 MB, free: 50.69 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.658e-05/0.7436, allocations: 11.84 kB / 484.2 MB, free: 50.69 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002619/0.7462, allocations: 1.612 MB / 485.9 MB, free: 50.35 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003551/0.7466, allocations: 254.2 kB / 486.1 MB, free: 50.32 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003887/0.747, allocations: 340.1 kB / 486.4 MB, free: 50.31 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01556/0.7625, allocations: 18.12 MB / 0.4927 GB, free: 36.97 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003105/0.7629, allocations: 194.8 kB / 0.4929 GB, free: 36.92 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 2.805e-06/0.7629, allocations: 2.594 kB / 0.4929 GB, free: 36.92 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.000914/0.7638, allocations: 460.6 kB / 0.4934 GB, free: 36.79 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.852e-05/0.7639, allocations: 168.4 kB / 0.4935 GB, free: 36.6 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001477/0.7654, allocations: 1.109 MB / 0.4946 GB, free: 36.39 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.469e-05/0.7654, allocations: 33.36 kB / 0.4946 GB, free: 36.36 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002508/0.7657, allocations: 362 kB / 0.495 GB, free: 36.2 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.925e-05/0.7658, allocations: 94.64 kB / 0.4951 GB, free: 36.14 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.628e-05/0.7658, allocations: 0 / 0.4951 GB, free: 36.14 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.767e-05/0.7659, allocations: 327.5 kB / 0.4954 GB, free: 35.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.7661, allocations: 103.5 kB / 0.4955 GB, free: 35.84 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002466/0.7663, allocations: 313.4 kB / 0.4958 GB, free: 35.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002501/0.7666, allocations: 151.5 kB / 0.4959 GB, free: 35.56 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.7666, allocations: 0 / 0.4959 GB, free: 35.56 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008756/0.7675, allocations: 0.5979 MB / 0.4965 GB, free: 35.43 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.7675, allocations: 3.25 kB / 0.4965 GB, free: 35.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.218e-05/0.7676, allocations: 44 kB / 0.4966 GB, free: 35.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003274/0.7679, allocations: 132.5 kB / 0.4967 GB, free: 35.42 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004338/0.7684, allocations: 122.3 kB / 0.4968 GB, free: 35.42 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005756/0.7689, allocations: 0.7038 MB / 0.4975 GB, free: 34.9 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007523/0.7697, allocations: 80.7 kB / 0.4976 GB, free: 34.88 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.127e-05/0.7698, allocations: 37.75 kB / 0.4976 GB, free: 34.88 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001507/0.7699, allocations: 131.8 kB / 0.4977 GB, free: 34.77 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/0.7701, allocations: 187.4 kB / 0.4979 GB, free: 34.67 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00213/0.7722, allocations: 0.7853 MB / 0.4987 GB, free: 34.59 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.7723, allocations: 4.656 kB / 0.4987 GB, free: 34.59 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.7723, allocations: 0 / 0.4987 GB, free: 34.59 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.7723, allocations: 0 / 0.4987 GB, free: 34.59 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001859/0.7742, allocations: 1.165 MB / 0.4998 GB, free: 34.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.437e-05/0.7742, allocations: 33.56 kB / 0.4998 GB, free: 34.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002838/0.7745, allocations: 65.28 kB / 0.4999 GB, free: 34.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002387/0.7748, allocations: 123.9 kB / 0.5 GB, free: 34.26 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.039e-05/0.7748, allocations: 21.34 kB / 0.5 GB, free: 34.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005251/0.7753, allocations: 0.6945 MB / 0.5007 GB, free: 33.74 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.7754, allocations: 3.438 kB / 0.5007 GB, free: 33.74 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000695/0.7761, allocations: 0.6182 MB / 0.5013 GB, free: 33.43 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004145/0.7765, allocations: 286.2 kB / 0.5016 GB, free: 33.23 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002052/0.7767, allocations: 5.625 kB / 0.5016 GB, free: 33.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005026/0.7772, allocations: 46.58 kB / 0.5017 GB, free: 33.23 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001357/0.7774, allocations: 36.03 kB / 0.5017 GB, free: 33.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-05/0.7774, allocations: 26.77 kB / 0.5017 GB, free: 33.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.001191/0.7786, allocations: 0.8339 MB / 0.5025 GB, free: 33.09 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001096/0.7797, allocations: 342.8 kB / 0.5029 GB, free: 33.05 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001034/0.7808, allocations: 0.7203 MB / 0.5036 GB, free: 32.9 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007683/0.7816, allocations: 377.9 kB / 0.5039 GB, free: 32.84 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.339e-06/0.7816, allocations: 10.31 kB / 0.5039 GB, free: 32.83 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003654/0.7819, allocations: 225.9 kB / 0.5041 GB, free: 32.77 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007503/0.7827, allocations: 226.6 kB / 0.5044 GB, free: 32.74 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002863/0.7856, allocations: 1.532 MB / 0.5059 GB, free: 32.23 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006261/0.7862, allocations: 1.268 MB / 0.5071 GB, free: 31.49 MB / 346.7 MB Notification: Performance of SimCode: time 9.02e-07/0.7862, allocations: 3.812 kB / 0.5071 GB, free: 31.49 MB / 346.7 MB Notification: Performance of Templates: time 0.02933/0.8156, allocations: 17.01 MB / 0.5237 GB, free: 29.89 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)