Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.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.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters") [: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.001646/0.001646, allocations: 191.6 kB / 8.135 MB, free: 2.199 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.163/1.163, allocations: 194.2 MB / 202.8 MB, free: 8.742 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.001797/0.001797, allocations: 114.6 kB / 247.7 MB, free: 6.355 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.841e-06/5.871e-06, allocations: 0 / 297.6 MB, free: 7.984 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07561/0.07563, allocations: 44.48 MB / 342 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2191/0.2948, allocations: 97.2 MB / 439.2 MB, free: 14.15 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001768/0.295, allocations: 69.23 kB / 439.3 MB, free: 14.12 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.5502/0.8452, allocations: 187.7 MB / 0.6123 GB, free: 31.96 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001817/0.8454, allocations: 83.53 kB / 0.6124 GB, free: 31.96 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.009201/0.8546, allocations: 4.753 MB / 0.6171 GB, free: 28.65 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.8547, allocations: 9.5 kB / 0.6171 GB, free: 28.65 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001369/0.856, allocations: 0.7534 MB / 0.6178 GB, free: 28.26 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008744/0.8648, allocations: 4.519 MB / 0.6222 GB, free: 25.25 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.746e-05/0.8649, allocations: 34.69 kB / 0.6223 GB, free: 25.24 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004781/0.8654, allocations: 70.17 kB / 0.6223 GB, free: 25.23 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002438/0.8678, allocations: 1.311 MB / 0.6236 GB, free: 24.78 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00231/0.8702, allocations: 1.325 MB / 0.6249 GB, free: 23.96 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.412e-05/0.8702, allocations: 0 / 0.6249 GB, free: 23.96 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001658/0.8704, allocations: 3 kB / 0.6249 GB, free: 23.96 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-05/0.8704, allocations: 38.66 kB / 0.6249 GB, free: 23.94 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01157/0.882, allocations: 5.695 MB / 0.6305 GB, free: 19.7 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008715/0.8829, allocations: 0.6491 MB / 0.6311 GB, free: 19.04 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001147/0.8841, allocations: 1.04 MB / 0.6321 GB, free: 18 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1996/1.084, allocations: 71.61 MB / 0.7021 GB, free: 75.29 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006665/1.084, allocations: 489.6 kB / 0.7026 GB, free: 75.24 MB / 410.7 MB Notification: Performance of pre-optimization done (n=85): time 3.918e-06/1.084, allocations: 0 / 0.7026 GB, free: 75.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=85): time 0.002966/1.087, allocations: 1.421 MB / 0.7039 GB, free: 74.85 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001319/1.088, allocations: 476.9 kB / 0.7044 GB, free: 74.29 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006629/1.094, allocations: 4.415 MB / 0.7087 GB, free: 73.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001934/1.094, allocations: 27.95 kB / 0.7087 GB, free: 73.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007808/1.095, allocations: 1.179 MB / 0.7099 GB, free: 73.48 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002821/1.095, allocations: 283.8 kB / 0.7102 GB, free: 73.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.975e-05/1.096, allocations: 3.328 kB / 0.7102 GB, free: 73.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.929e-05/1.096, allocations: 368.1 kB / 0.7105 GB, free: 73.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005183/1.096, allocations: 316.1 kB / 0.7108 GB, free: 73.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007566/1.097, allocations: 1.077 MB / 0.7119 GB, free: 72.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008321/1.098, allocations: 495 kB / 0.7123 GB, free: 72.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/1.098, allocations: 7.875 kB / 0.7123 GB, free: 72.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003005/1.101, allocations: 1.928 MB / 0.7142 GB, free: 71.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/1.101, allocations: 3.625 kB / 0.7142 GB, free: 71.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002315/1.101, allocations: 167.4 kB / 0.7144 GB, free: 71.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.329e-05/1.101, allocations: 36.62 kB / 0.7144 GB, free: 71.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/1.102, allocations: 373.7 kB / 0.7148 GB, free: 71.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.949e-05/1.102, allocations: 51.7 kB / 0.7148 GB, free: 71.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002468/1.105, allocations: 175 kB / 0.715 GB, free: 71.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002135/1.105, allocations: 129.5 kB / 0.7151 GB, free: 71.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.0002861/1.105, allocations: 179.4 kB / 0.7153 GB, free: 71.48 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007657/1.106, allocations: 0.7238 MB / 0.716 GB, free: 71.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007973/1.114, allocations: 2.632 MB / 0.7186 GB, free: 70.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/1.114, allocations: 6.969 kB / 0.7186 GB, free: 70.98 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/1.114, allocations: 0 / 0.7186 GB, free: 70.98 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/1.114, allocations: 3.844 kB / 0.7186 GB, free: 70.98 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006697/1.121, allocations: 3.553 MB / 0.722 GB, free: 70.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001993/1.121, allocations: 139.8 kB / 0.7222 GB, free: 70.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008685/1.122, allocations: 168.3 kB / 0.7223 GB, free: 70.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-05/1.122, allocations: 5.594 kB / 0.7223 GB, free: 70.59 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/1.122, allocations: 57.86 kB / 0.7224 GB, free: 70.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/1.122, allocations: 3.938 kB / 0.7224 GB, free: 70.59 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.122, allocations: 3.656 kB / 0.7224 GB, free: 70.59 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003077/1.125, allocations: 2.057 MB / 0.7244 GB, free: 69.89 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002038/1.127, allocations: 0.9363 MB / 0.7253 GB, free: 69.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001086/1.128, allocations: 5.969 kB / 0.7253 GB, free: 69.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001452/1.13, allocations: 51.19 kB / 0.7254 GB, free: 69.36 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/1.13, allocations: 92.52 kB / 0.7255 GB, free: 69.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001282/1.13, allocations: 73.02 kB / 0.7255 GB, free: 69.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.004812/1.135, allocations: 3.252 MB / 0.7287 GB, free: 69.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00298/1.138, allocations: 1.127 MB / 0.7298 GB, free: 69.09 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001642/1.14, allocations: 1.304 MB / 0.7311 GB, free: 68.99 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001716/1.142, allocations: 1.256 MB / 0.7323 GB, free: 68.73 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/1.142, allocations: 0 / 0.7323 GB, free: 68.73 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007722/1.142, allocations: 0.7074 MB / 0.733 GB, free: 68.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003158/1.145, allocations: 0.9235 MB / 0.7339 GB, free: 68.44 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01139/1.157, allocations: 6.037 MB / 0.7398 GB, free: 66.66 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00296/1.16, allocations: 3.037 MB / 0.7428 GB, free: 65.88 MB / 410.7 MB Notification: Performance of SimCode: time 1.393e-06/1.16, allocations: 0 / 0.7428 GB, free: 65.88 MB / 410.7 MB Notification: Performance of Templates: time 0.09503/1.255, allocations: 52.46 MB / 0.794 GB, free: 38.28 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)