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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00106/0.00106, allocations: 164.4 kB / 7.635 MB, free: 1.418 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.312/1.312, allocations: 170.6 MB / 178.7 MB, free: 15.64 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.001595/0.001595, allocations: 107.5 kB / 218 MB, free: 8.402 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.019e-05/2.021e-05, allocations: 4 kB / 262.2 MB, free: 26.39 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07327/0.07331, allocations: 38.77 MB / 301 MB, free: 3.633 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3051/0.3784, allocations: 92.98 MB / 394 MB, free: 7.633 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000211/0.3787, allocations: 78.08 kB / 394 MB, free: 7.594 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4215/0.8002, allocations: 86.41 MB / 480.5 MB, free: 78.44 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.8003, allocations: 0 / 480.5 MB, free: 78.44 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.597e-05/0.8003, allocations: 22.44 kB / 480.5 MB, free: 78.44 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.002813/0.8031, allocations: 1.609 MB / 482.1 MB, free: 77.67 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.8032, allocations: 9.406 kB / 482.1 MB, free: 77.67 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002161/0.8034, allocations: 194.1 kB / 482.3 MB, free: 77.57 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001524/0.8049, allocations: 1.219 MB / 483.5 MB, free: 77.15 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.805, allocations: 9.062 kB / 483.5 MB, free: 77.15 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.795e-05/0.805, allocations: 19.55 kB / 483.5 MB, free: 77.14 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005476/0.8056, allocations: 371.3 kB / 483.9 MB, free: 77.14 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005628/0.8062, allocations: 400.4 kB / 484.3 MB, free: 77.06 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.8062, allocations: 0 / 484.3 MB, free: 77.06 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.279e-05/0.8062, allocations: 4.766 kB / 484.3 MB, free: 77.06 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.8062, allocations: 10.66 kB / 484.3 MB, free: 77.06 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002327/0.8086, allocations: 1.603 MB / 485.9 MB, free: 76.71 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003464/0.8089, allocations: 268.4 kB / 486.2 MB, free: 76.69 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000335/0.8093, allocations: 354.2 kB / 486.5 MB, free: 76.68 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01291/0.8222, allocations: 18.18 MB / 0.4929 GB, free: 63.33 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002931/0.8225, allocations: 204.7 kB / 0.4931 GB, free: 63.28 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.944e-06/0.8225, allocations: 0 / 0.4931 GB, free: 63.28 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006971/0.8232, allocations: 472.1 kB / 0.4935 GB, free: 63.14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.8233, allocations: 167.2 kB / 0.4937 GB, free: 62.96 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001178/0.8245, allocations: 1.111 MB / 0.4948 GB, free: 62.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.6e-05/0.8245, allocations: 37.27 kB / 0.4948 GB, free: 62.72 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004831/0.825, allocations: 0.7228 MB / 0.4955 GB, free: 62.55 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.368e-05/0.8251, allocations: 93.41 kB / 0.4956 GB, free: 62.5 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.605e-05/0.8251, allocations: 2.719 kB / 0.4956 GB, free: 62.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.156e-05/0.8252, allocations: 330.1 kB / 0.4959 GB, free: 62.19 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001448/0.8254, allocations: 99.19 kB / 0.496 GB, free: 62.19 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.8256, allocations: 316.5 kB / 0.4963 GB, free: 61.92 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002146/0.8258, allocations: 141.2 kB / 0.4964 GB, free: 61.92 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.8258, allocations: 3.844 kB / 0.4964 GB, free: 61.92 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007194/0.8265, allocations: 0.6055 MB / 0.497 GB, free: 61.79 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.8266, allocations: 11.78 kB / 0.497 GB, free: 61.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.473e-05/0.8266, allocations: 39.44 kB / 0.4971 GB, free: 61.79 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002595/0.8269, allocations: 128.3 kB / 0.4972 GB, free: 61.78 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004006/0.8273, allocations: 118.1 kB / 0.4973 GB, free: 61.78 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004572/0.8278, allocations: 0.7055 MB / 0.498 GB, free: 61.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006224/0.8284, allocations: 76.89 kB / 0.4981 GB, free: 61.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.417e-05/0.8285, allocations: 36.38 kB / 0.4981 GB, free: 61.23 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.0001279/0.8286, allocations: 124.5 kB / 0.4982 GB, free: 61.12 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001846/0.8288, allocations: 187.2 kB / 0.4984 GB, free: 61.03 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00134/0.8301, allocations: 0.6636 MB / 0.4991 GB, free: 60.95 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.8302, allocations: 6.781 kB / 0.4991 GB, free: 60.95 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.8302, allocations: 0 / 0.4991 GB, free: 60.95 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.8302, allocations: 3.797 kB / 0.4991 GB, free: 60.95 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001284/0.8315, allocations: 1.162 MB / 0.5002 GB, free: 60.63 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.577e-05/0.8315, allocations: 37.28 kB / 0.5002 GB, free: 60.63 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002499/0.8318, allocations: 60.25 kB / 0.5003 GB, free: 60.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001782/0.832, allocations: 123.2 kB / 0.5004 GB, free: 60.62 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.223e-05/0.832, allocations: 21.03 kB / 0.5004 GB, free: 60.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004008/0.8324, allocations: 0.6866 MB / 0.5011 GB, free: 60.1 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.8324, allocations: 0 / 0.5011 GB, free: 60.1 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005933/0.833, allocations: 0.6407 MB / 0.5017 GB, free: 59.79 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002948/0.8333, allocations: 282.9 kB / 0.502 GB, free: 59.59 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001689/0.8335, allocations: 11.27 kB / 0.502 GB, free: 59.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000452/0.834, allocations: 33.39 kB / 0.502 GB, free: 59.59 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.842e-05/0.8341, allocations: 45.25 kB / 0.5021 GB, free: 59.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.62e-05/0.8341, allocations: 19.56 kB / 0.5021 GB, free: 59.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008067/0.8349, allocations: 0.8385 MB / 0.5029 GB, free: 59.45 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.8349, allocations: 0 / 0.5029 GB, free: 59.45 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008489/0.8358, allocations: 341.5 kB / 0.5032 GB, free: 59.4 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.0007981/0.8366, allocations: 0.7233 MB / 0.5039 GB, free: 59.27 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006005/0.8372, allocations: 398.7 kB / 0.5043 GB, free: 59.2 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.8372, allocations: 0 / 0.5043 GB, free: 59.2 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003145/0.8375, allocations: 233.5 kB / 0.5046 GB, free: 59.14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006951/0.8382, allocations: 234.4 kB / 0.5048 GB, free: 59.11 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002066/0.8403, allocations: 1.522 MB / 0.5063 GB, free: 58.59 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004844/0.8408, allocations: 1.183 MB / 0.5074 GB, free: 57.88 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005403/0.8414, allocations: 175.9 kB / 0.5076 GB, free: 57.84 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.8415, allocations: 78.91 kB / 0.5077 GB, free: 57.84 MB / 346.7 MB Notification: Performance of SimCode: time 3.81e-07/0.8415, allocations: 0 / 0.5077 GB, free: 57.84 MB / 346.7 MB Notification: Performance of Templates: time 0.02372/0.8652, allocations: 16.2 MB / 0.5235 GB, free: 56.41 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)