Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [: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.001046/0.001046, allocations: 189.9 kB / 8.137 MB, free: 2.191 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.108/1.108, allocations: 194.2 MB / 202.8 MB, free: 8.746 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.001732/0.001732, allocations: 116 kB / 247.7 MB, free: 6.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.901e-06/5.931e-06, allocations: 0 / 297.6 MB, free: 7.988 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07513/0.07516, allocations: 44.48 MB / 342.1 MB, free: 11.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2379/0.3131, allocations: 97.07 MB / 439.1 MB, free: 14.27 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/0.3134, allocations: 68.27 kB / 439.2 MB, free: 14.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.4358/0.7492, allocations: 122.6 MB / 0.5486 GB, free: 60.91 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.546e-05/0.7493, allocations: 45.31 kB / 0.5487 GB, free: 60.91 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.004343/0.7537, allocations: 2.84 MB / 0.5515 GB, free: 59.35 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.7537, allocations: 9.75 kB / 0.5515 GB, free: 59.35 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004865/0.7542, allocations: 415.9 kB / 0.5519 GB, free: 59.14 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003748/0.758, allocations: 2.435 MB / 0.5542 GB, free: 58.46 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.688e-05/0.758, allocations: 14.59 kB / 0.5542 GB, free: 58.46 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000152/0.7582, allocations: 39.16 kB / 0.5543 GB, free: 58.46 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00105/0.7592, allocations: 0.6859 MB / 0.555 GB, free: 58.46 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.7603, allocations: 0.7182 MB / 0.5557 GB, free: 58.34 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.7603, allocations: 0 / 0.5557 GB, free: 58.34 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.388e-05/0.7604, allocations: 0 / 0.5557 GB, free: 58.34 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.127e-05/0.7604, allocations: 20.33 kB / 0.5557 GB, free: 58.34 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005368/0.7658, allocations: 3.188 MB / 0.5588 GB, free: 57.8 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004428/0.7662, allocations: 354.9 kB / 0.5591 GB, free: 57.77 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005912/0.7668, allocations: 0.539 MB / 0.5597 GB, free: 57.75 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03153/0.7984, allocations: 36.07 MB / 0.5949 GB, free: 31.28 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000456/0.7989, allocations: 297 kB / 0.5952 GB, free: 31.22 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 2.805e-06/0.7989, allocations: 0 / 0.5952 GB, free: 31.22 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.001367/0.8003, allocations: 0.7934 MB / 0.5959 GB, free: 30.98 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.79e-05/0.8003, allocations: 269.1 kB / 0.5962 GB, free: 30.66 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00348/0.8038, allocations: 2.454 MB / 0.5986 GB, free: 30.38 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.076e-05/0.8039, allocations: 33.06 kB / 0.5986 GB, free: 30.35 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005742/0.8045, allocations: 0.6621 MB / 0.5993 GB, free: 30.08 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/0.8046, allocations: 160.4 kB / 0.5994 GB, free: 29.98 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.458e-05/0.8047, allocations: 4.688 kB / 0.5994 GB, free: 29.98 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.25e-05/0.8048, allocations: 340.7 kB / 0.5998 GB, free: 29.68 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003115/0.8051, allocations: 173.3 kB / 0.5999 GB, free: 29.68 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005261/0.8056, allocations: 0.574 MB / 0.6005 GB, free: 29.14 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005035/0.8061, allocations: 263.5 kB / 0.6007 GB, free: 29.1 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.772e-06/0.8061, allocations: 3.688 kB / 0.6007 GB, free: 29.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001514/0.8077, allocations: 1.058 MB / 0.6018 GB, free: 28.8 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.8077, allocations: 4.828 kB / 0.6018 GB, free: 28.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000117/0.8078, allocations: 85.52 kB / 0.6019 GB, free: 28.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.718e-05/0.8078, allocations: 19.69 kB / 0.6019 GB, free: 28.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008139/0.8087, allocations: 213.6 kB / 0.6021 GB, free: 28.78 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.65e-05/0.8087, allocations: 26.12 kB / 0.6021 GB, free: 28.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/0.8099, allocations: 119.1 kB / 0.6022 GB, free: 28.72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.759e-05/0.81, allocations: 66.83 kB / 0.6023 GB, free: 28.72 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.0001525/0.8101, allocations: 140.9 kB / 0.6024 GB, free: 28.59 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002778/0.8104, allocations: 400.6 kB / 0.6028 GB, free: 28.39 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003764/0.8142, allocations: 1.398 MB / 0.6042 GB, free: 28.04 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.8142, allocations: 3.5 kB / 0.6042 GB, free: 28.04 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.8142, allocations: 0 / 0.6042 GB, free: 28.04 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.8142, allocations: 3.75 kB / 0.6042 GB, free: 28.04 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002891/0.8171, allocations: 2.091 MB / 0.6062 GB, free: 27.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001066/0.8173, allocations: 71.78 kB / 0.6063 GB, free: 27.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005588/0.8178, allocations: 111.3 kB / 0.6064 GB, free: 27.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.359e-06/0.8178, allocations: 0 / 0.6064 GB, free: 27.68 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.358e-05/0.8179, allocations: 27.7 kB / 0.6064 GB, free: 27.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.8179, allocations: 6.906 kB / 0.6064 GB, free: 27.67 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.8179, allocations: 0 / 0.6064 GB, free: 27.67 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001406/0.8193, allocations: 1.202 MB / 0.6076 GB, free: 27.02 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007925/0.8201, allocations: 0.5184 MB / 0.6081 GB, free: 26.65 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00045/0.8206, allocations: 6.938 kB / 0.6081 GB, free: 26.65 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000864/0.8215, allocations: 47.95 kB / 0.6081 GB, free: 26.64 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.8216, allocations: 62.05 kB / 0.6082 GB, free: 26.63 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.029e-05/0.8217, allocations: 35.56 kB / 0.6082 GB, free: 26.63 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.00202/0.8237, allocations: 1.818 MB / 0.61 GB, free: 25.88 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001366/0.8251, allocations: 0.6211 MB / 0.6106 GB, free: 25.8 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.001089/0.8262, allocations: 0.9751 MB / 0.6116 GB, free: 25.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008991/0.8271, allocations: 0.6816 MB / 0.6122 GB, free: 25.22 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.8271, allocations: 0 / 0.6122 GB, free: 25.22 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00044/0.8276, allocations: 392.1 kB / 0.6126 GB, free: 25.01 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001434/0.829, allocations: 0.5061 MB / 0.6131 GB, free: 24.77 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005378/0.8344, allocations: 3.28 MB / 0.6163 GB, free: 23.43 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001248/0.8357, allocations: 1.95 MB / 0.6182 GB, free: 22.65 MB / 394.7 MB Notification: Performance of SimCode: time 5.71e-07/0.8357, allocations: 0 / 0.6182 GB, free: 22.65 MB / 394.7 MB Notification: Performance of Templates: time 0.04919/0.8849, allocations: 29.96 MB / 0.6475 GB, free: 11.86 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)