Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.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.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001233/0.001233, allocations: 169.9 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.101/1.101, allocations: 170.6 MB / 183.8 MB, free: 11.5 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.001593/0.001593, allocations: 103.5 kB / 223.2 MB, free: 4.117 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.696e-05/2.698e-05, allocations: 0 / 268.9 MB, free: 20.95 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07128/0.07133, allocations: 38.78 MB / 307.6 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2784/0.3497, allocations: 94.11 MB / 401.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/0.35, allocations: 66.84 kB / 401.8 MB, free: 14.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5455/0.8955, allocations: 196.5 MB / 0.5843 GB, free: 176 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.8956, allocations: 0 / 0.5843 GB, free: 176 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001201/0.8957, allocations: 84 kB / 0.5844 GB, free: 92 kB / 346.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.01066/0.9064, allocations: 4.684 MB / 0.5889 GB, free: 11.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.873e-05/0.9064, allocations: 8.031 kB / 0.5889 GB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00141/0.9079, allocations: 0.7487 MB / 0.5897 GB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008959/0.9168, allocations: 4.509 MB / 0.5941 GB, free: 5.984 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.909e-05/0.9169, allocations: 77.94 kB / 0.5942 GB, free: 5.906 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002651/0.9172, allocations: 99.81 kB / 0.5942 GB, free: 5.809 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002373/0.9196, allocations: 1.445 MB / 0.5957 GB, free: 4.293 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.9196, allocations: 0 / 0.5957 GB, free: 4.293 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001289/0.9198, allocations: 40 kB / 0.5957 GB, free: 4.254 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.466e-05/0.9198, allocations: 39.97 kB / 0.5957 GB, free: 4.215 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002001/0.9218, allocations: 1.359 MB / 0.5971 GB, free: 2.855 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2519/1.174, allocations: 5.853 MB / 0.6028 GB, free: 46.6 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001269/1.175, allocations: 0.8873 MB / 0.6036 GB, free: 46.57 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001678/1.177, allocations: 1.164 MB / 0.6048 GB, free: 46.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06546/1.242, allocations: 71.9 MB / 0.675 GB, free: 26.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007152/1.243, allocations: 0.5072 MB / 0.6755 GB, free: 26.1 MB / 394.7 MB Notification: Performance of pre-optimization done (n=85): time 4.789e-06/1.243, allocations: 4.391 kB / 0.6755 GB, free: 26.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=85): time 0.002804/1.246, allocations: 1.462 MB / 0.6769 GB, free: 25.68 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002401/1.246, allocations: 481.3 kB / 0.6774 GB, free: 25.12 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006434/1.253, allocations: 4.788 MB / 0.6821 GB, free: 24.66 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001722/1.253, allocations: 45.64 kB / 0.6821 GB, free: 24.63 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002005/1.255, allocations: 2.936 MB / 0.685 GB, free: 24.28 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003157/1.255, allocations: 298.3 kB / 0.6853 GB, free: 24.14 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.846e-05/1.255, allocations: 27.94 kB / 0.6853 GB, free: 24.14 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001396/1.255, allocations: 367.7 kB / 0.6856 GB, free: 23.83 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005144/1.256, allocations: 339.7 kB / 0.686 GB, free: 23.83 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008057/1.257, allocations: 1.124 MB / 0.6871 GB, free: 22.84 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007096/1.257, allocations: 0.515 MB / 0.6876 GB, free: 22.82 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.224e-05/1.257, allocations: 13.86 kB / 0.6876 GB, free: 22.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003142/1.26, allocations: 2.091 MB / 0.6896 GB, free: 22.43 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.238e-05/1.261, allocations: 15.44 kB / 0.6896 GB, free: 22.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001949/1.261, allocations: 162.5 kB / 0.6898 GB, free: 22.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.938e-05/1.261, allocations: 36.56 kB / 0.6898 GB, free: 22.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/1.262, allocations: 369 kB / 0.6902 GB, free: 22.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.733e-05/1.262, allocations: 57.95 kB / 0.6902 GB, free: 22.42 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002881/1.265, allocations: 203.7 kB / 0.6904 GB, free: 22.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000192/1.265, allocations: 125 kB / 0.6905 GB, free: 22.38 MB / 394.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.0003338/1.265, allocations: 220.6 kB / 0.6907 GB, free: 22.27 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007666/1.266, allocations: 0.7229 MB / 0.6915 GB, free: 21.89 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005258/1.272, allocations: 2.138 MB / 0.6935 GB, free: 21.76 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/1.272, allocations: 6.906 kB / 0.6935 GB, free: 21.76 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/1.272, allocations: 0 / 0.6935 GB, free: 21.76 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/1.272, allocations: 3.844 kB / 0.6936 GB, free: 21.76 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006464/1.278, allocations: 3.729 MB / 0.6972 GB, free: 21.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001606/1.278, allocations: 142.6 kB / 0.6973 GB, free: 21.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007394/1.279, allocations: 173.5 kB / 0.6975 GB, free: 21.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-06/1.279, allocations: 0 / 0.6975 GB, free: 21.29 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.961e-05/1.279, allocations: 58.75 kB / 0.6976 GB, free: 21.29 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.05e-06/1.279, allocations: 7.094 kB / 0.6976 GB, free: 21.29 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/1.279, allocations: 0 / 0.6976 GB, free: 21.29 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002562/1.282, allocations: 2.104 MB / 0.6996 GB, free: 20.59 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001821/1.283, allocations: 0.9384 MB / 0.7005 GB, free: 20.06 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006112/1.284, allocations: 16.75 kB / 0.7005 GB, free: 20.06 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001199/1.285, allocations: 54.86 kB / 0.7006 GB, free: 20.06 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002368/1.286, allocations: 104.5 kB / 0.7007 GB, free: 20.06 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001236/1.286, allocations: 69.56 kB / 0.7008 GB, free: 20.06 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.006474/1.292, allocations: 3.636 MB / 0.7043 GB, free: 19.77 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.61e-07/1.292, allocations: 0 / 0.7043 GB, free: 19.77 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003599/1.296, allocations: 1.177 MB / 0.7055 GB, free: 19.75 MB / 394.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.00188/1.298, allocations: 1.235 MB / 0.7067 GB, free: 19.65 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00195/1.3, allocations: 1.328 MB / 0.708 GB, free: 19.38 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/1.3, allocations: 3.938 kB / 0.708 GB, free: 19.38 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007664/1.3, allocations: 0.7143 MB / 0.7087 GB, free: 19.13 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004177/1.305, allocations: 0.9536 MB / 0.7096 GB, free: 19.07 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009282/1.314, allocations: 6.043 MB / 0.7155 GB, free: 15.42 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001772/1.316, allocations: 2.722 MB / 0.7182 GB, free: 13.55 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002683/1.318, allocations: 0.7338 MB / 0.7189 GB, free: 13.14 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000435/1.319, allocations: 309.7 kB / 0.7192 GB, free: 12.85 MB / 394.7 MB Notification: Performance of SimCode: time 1.633e-06/1.319, allocations: 0 / 0.7192 GB, free: 12.85 MB / 394.7 MB Notification: Performance of Templates: time 0.3294/1.648, allocations: 55.9 MB / 0.7738 GB, free: 72.15 MB / 394.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)