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.001034/0.001034, allocations: 171.5 kB / 7.638 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.246/1.246, allocations: 170.6 MB / 178.7 MB, free: 15.66 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.001649/0.001649, allocations: 108.5 kB / 218 MB, free: 8.406 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.802e-05/1.803e-05, allocations: 4 kB / 262.2 MB, free: 26.42 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06811/0.06815, allocations: 38.77 MB / 301 MB, free: 3.652 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2823/0.3504, allocations: 93.45 MB / 394.4 MB, free: 7.207 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002292/0.3507, allocations: 74.67 kB / 394.5 MB, free: 7.168 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5527/0.9034, allocations: 189.8 MB / 0.5706 GB, free: 18.19 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.9034, allocations: 0 / 0.5706 GB, free: 18.19 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001276/0.9036, allocations: 84 kB / 0.5707 GB, free: 18.11 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.008308/0.9119, allocations: 4.684 MB / 0.5752 GB, free: 13.36 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.9119, allocations: 8.031 kB / 0.5753 GB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001183/0.9131, allocations: 0.7487 MB / 0.576 GB, free: 12.59 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007118/0.9203, allocations: 4.512 MB / 0.5804 GB, free: 8 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.286e-05/0.9203, allocations: 31.95 kB / 0.5804 GB, free: 7.969 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003178/0.9207, allocations: 75.73 kB / 0.5805 GB, free: 7.895 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001713/0.9224, allocations: 1.309 MB / 0.5818 GB, free: 6.582 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001607/0.924, allocations: 1.328 MB / 0.5831 GB, free: 5.184 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/0.924, allocations: 4 kB / 0.5831 GB, free: 5.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001123/0.9241, allocations: 0 / 0.5831 GB, free: 5.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.799e-05/0.9242, allocations: 39.97 kB / 0.5831 GB, free: 5.141 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.19/1.114, allocations: 5.658 MB / 0.5886 GB, free: 41.05 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001435/1.116, allocations: 0.859 MB / 0.5895 GB, free: 41.02 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001153/1.117, allocations: 1.122 MB / 0.5906 GB, free: 41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05915/1.176, allocations: 71.86 MB / 0.6607 GB, free: 20.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006106/1.177, allocations: 495.6 kB / 0.6612 GB, free: 20.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 2.936e-06/1.177, allocations: 0 / 0.6612 GB, free: 20.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.002159/1.179, allocations: 1.436 MB / 0.6626 GB, free: 20.17 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002245/1.179, allocations: 488.6 kB / 0.6631 GB, free: 19.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005623/1.185, allocations: 4.404 MB / 0.6674 GB, free: 19.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002174/1.185, allocations: 29.58 kB / 0.6674 GB, free: 19.15 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001895/1.187, allocations: 2.927 MB / 0.6703 GB, free: 18.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003516/1.187, allocations: 287.9 kB / 0.6706 GB, free: 18.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.094e-05/1.187, allocations: 0 / 0.6706 GB, free: 18.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001592/1.187, allocations: 373.7 kB / 0.6709 GB, free: 18.35 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004213/1.188, allocations: 309.8 kB / 0.6712 GB, free: 18.35 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006566/1.189, allocations: 1.086 MB / 0.6723 GB, free: 17.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000697/1.189, allocations: 495.4 kB / 0.6727 GB, free: 17.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-05/1.189, allocations: 6.469 kB / 0.6727 GB, free: 17.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002666/1.192, allocations: 1.931 MB / 0.6746 GB, free: 16.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/1.192, allocations: 14.19 kB / 0.6746 GB, free: 16.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001779/1.192, allocations: 164.4 kB / 0.6748 GB, free: 16.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.926e-05/1.192, allocations: 35.34 kB / 0.6748 GB, free: 16.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001128/1.193, allocations: 366 kB / 0.6752 GB, free: 16.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.832e-05/1.193, allocations: 52.92 kB / 0.6752 GB, free: 16.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002492/1.196, allocations: 170.4 kB / 0.6754 GB, free: 16.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001627/1.196, allocations: 126.1 kB / 0.6755 GB, free: 16.9 MB / 378.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.0002669/1.196, allocations: 177.1 kB / 0.6757 GB, free: 16.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007534/1.197, allocations: 0.7246 MB / 0.6764 GB, free: 16.42 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005147/1.202, allocations: 2.093 MB / 0.6784 GB, free: 16.28 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/1.202, allocations: 13.55 kB / 0.6784 GB, free: 16.28 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/1.202, allocations: 0 / 0.6784 GB, free: 16.28 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/1.202, allocations: 0.7969 kB / 0.6784 GB, free: 16.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007147/1.209, allocations: 3.551 MB / 0.6819 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001679/1.21, allocations: 135.9 kB / 0.682 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007789/1.211, allocations: 167.1 kB / 0.6822 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.168e-05/1.211, allocations: 5 kB / 0.6822 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.737e-05/1.211, allocations: 52.42 kB / 0.6823 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.601e-06/1.211, allocations: 3.781 kB / 0.6823 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/1.211, allocations: 0 / 0.6823 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002708/1.213, allocations: 2.052 MB / 0.6843 GB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00218/1.216, allocations: 0.9397 MB / 0.6852 GB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008621/1.216, allocations: 9.078 kB / 0.6852 GB, free: 14.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/1.218, allocations: 43.45 kB / 0.6852 GB, free: 14.65 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/1.218, allocations: 97.95 kB / 0.6853 GB, free: 14.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001148/1.218, allocations: 71.75 kB / 0.6854 GB, free: 14.65 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00536/1.223, allocations: 3.256 MB / 0.6886 GB, free: 14.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.974e-06/1.223, allocations: 0.6562 kB / 0.6886 GB, free: 14.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003264/1.227, allocations: 1.12 MB / 0.6897 GB, free: 14.38 MB / 378.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.001655/1.228, allocations: 1.316 MB / 0.691 GB, free: 14.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001597/1.23, allocations: 1.249 MB / 0.6922 GB, free: 14.01 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/1.23, allocations: 4.875 kB / 0.6922 GB, free: 14.01 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007153/1.231, allocations: 0.6996 MB / 0.6929 GB, free: 13.76 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003325/1.234, allocations: 0.9435 MB / 0.6938 GB, free: 13.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009/1.243, allocations: 6.004 MB / 0.6996 GB, free: 9.941 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001961/1.245, allocations: 2.722 MB / 0.7023 GB, free: 24.07 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002525/1.248, allocations: 0.7361 MB / 0.703 GB, free: 23.67 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003795/1.248, allocations: 303.4 kB / 0.7033 GB, free: 23.37 MB / 394.7 MB Notification: Performance of SimCode: time 8.02e-07/1.248, allocations: 0 / 0.7033 GB, free: 23.37 MB / 394.7 MB Notification: Performance of Templates: time 0.2654/1.513, allocations: 51.4 MB / 0.7535 GB, free: 80.29 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)