Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001488/0.001488, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.996/1.996, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00109/0.00109, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.858e-05/2.872e-05, allocations: 4 kB / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09704/0.09709, allocations: 47.58 MB / 369.1 MB, free: 2.215 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.437/0.5341, allocations: 101.9 MB / 471 MB, free: 7.574 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002795/0.5345, allocations: 70.16 kB / 471 MB, free: 7.539 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5702/1.105, allocations: 89.47 MB / 0.5474 GB, free: 99.12 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.365e-06/1.105, allocations: 1.031 kB / 0.5474 GB, free: 99.12 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.094e-05/1.105, allocations: 22.38 kB / 0.5474 GB, free: 99.12 MB / 410.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.004696/1.11, allocations: 1.613 MB / 0.549 GB, free: 98.23 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/1.11, allocations: 9.188 kB / 0.549 GB, free: 98.23 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005796/1.11, allocations: 194.9 kB / 0.5492 GB, free: 98.13 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003282/1.113, allocations: 1.215 MB / 0.5503 GB, free: 97.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.179e-05/1.114, allocations: 24.2 kB / 0.5504 GB, free: 97.7 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001215/1.114, allocations: 26.88 kB / 0.5504 GB, free: 97.7 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001084/1.115, allocations: 449 kB / 0.5508 GB, free: 97.61 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/1.115, allocations: 1.125 kB / 0.5508 GB, free: 97.61 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.137e-05/1.115, allocations: 14.66 kB / 0.5508 GB, free: 97.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.313e-05/1.115, allocations: 18.95 kB / 0.5509 GB, free: 97.6 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009485/1.116, allocations: 371.2 kB / 0.5512 GB, free: 97.6 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004871/1.121, allocations: 1.654 MB / 0.5528 GB, free: 97.23 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006595/1.122, allocations: 278.2 kB / 0.5531 GB, free: 97.2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006876/1.122, allocations: 358.8 kB / 0.5534 GB, free: 97.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02369/1.146, allocations: 18.2 MB / 0.5712 GB, free: 83.83 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005086/1.147, allocations: 209.3 kB / 0.5714 GB, free: 83.79 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 3.627e-06/1.147, allocations: 0 / 0.5714 GB, free: 83.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=29): time 0.001327/1.148, allocations: 491.2 kB / 0.5719 GB, free: 83.65 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.536e-05/1.148, allocations: 173.6 kB / 0.572 GB, free: 83.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002205/1.15, allocations: 1.213 MB / 0.5732 GB, free: 83.24 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001027/1.15, allocations: 32.36 kB / 0.5733 GB, free: 83.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006125/1.151, allocations: 0.6301 MB / 0.5739 GB, free: 82.74 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/1.151, allocations: 96.3 kB / 0.574 GB, free: 82.67 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.326e-05/1.151, allocations: 11.94 kB / 0.574 GB, free: 82.66 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.496e-05/1.151, allocations: 326.5 kB / 0.5743 GB, free: 82.34 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003176/1.152, allocations: 112.1 kB / 0.5744 GB, free: 82.31 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004099/1.152, allocations: 334.4 kB / 0.5747 GB, free: 81.98 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003769/1.152, allocations: 154.9 kB / 0.5749 GB, free: 81.94 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/1.152, allocations: 3.938 kB / 0.5749 GB, free: 81.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001176/1.154, allocations: 0.5053 MB / 0.5754 GB, free: 81.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/1.154, allocations: 7.844 kB / 0.5754 GB, free: 81.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.45e-05/1.154, allocations: 43.12 kB / 0.5754 GB, free: 81.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00046/1.154, allocations: 129.5 kB / 0.5755 GB, free: 81.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007521/1.155, allocations: 122.7 kB / 0.5756 GB, free: 81.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007173/1.156, allocations: 0.6804 MB / 0.5763 GB, free: 81.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001289/1.157, allocations: 88.64 kB / 0.5764 GB, free: 81.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.852e-05/1.157, allocations: 34 kB / 0.5764 GB, free: 81.09 MB / 410.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.0001837/1.157, allocations: 139.8 kB / 0.5766 GB, free: 80.95 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002845/1.158, allocations: 191.8 kB / 0.5767 GB, free: 80.86 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002539/1.16, allocations: 0.6792 MB / 0.5774 GB, free: 80.58 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.774e-06/1.16, allocations: 0 / 0.5774 GB, free: 80.58 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/1.16, allocations: 3.938 kB / 0.5774 GB, free: 80.58 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/1.16, allocations: 0 / 0.5774 GB, free: 80.58 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002887/1.163, allocations: 1.247 MB / 0.5786 GB, free: 79.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.991e-05/1.163, allocations: 32.09 kB / 0.5787 GB, free: 79.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004961/1.164, allocations: 63.88 kB / 0.5787 GB, free: 79.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003586/1.164, allocations: 129.1 kB / 0.5788 GB, free: 79.88 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.116e-05/1.164, allocations: 14.55 kB / 0.5789 GB, free: 79.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006766/1.165, allocations: 0.674 MB / 0.5795 GB, free: 79.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.165, allocations: 2.781 kB / 0.5795 GB, free: 79.31 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001373/1.166, allocations: 0.6487 MB / 0.5802 GB, free: 78.91 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007798/1.167, allocations: 291.3 kB / 0.5804 GB, free: 78.69 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003175/1.167, allocations: 10.59 kB / 0.5804 GB, free: 78.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009269/1.168, allocations: 42.52 kB / 0.5805 GB, free: 78.68 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001743/1.169, allocations: 42.47 kB / 0.5805 GB, free: 78.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.559e-05/1.169, allocations: 15.84 kB / 0.5805 GB, free: 78.68 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001826/1.171, allocations: 0.9354 MB / 0.5815 GB, free: 78.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.603e-06/1.171, allocations: 0 / 0.5815 GB, free: 78.27 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001697/1.172, allocations: 365.9 kB / 0.5818 GB, free: 78.21 MB / 410.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.001257/1.174, allocations: 0.6167 MB / 0.5824 GB, free: 78.04 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001213/1.175, allocations: 416.1 kB / 0.5828 GB, free: 77.87 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/1.175, allocations: 0 / 0.5828 GB, free: 77.87 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005983/1.175, allocations: 245.9 kB / 0.583 GB, free: 77.76 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001646/1.177, allocations: 248.8 kB / 0.5833 GB, free: 77.64 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003875/1.181, allocations: 1.572 MB / 0.5848 GB, free: 76.94 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006326/1.182, allocations: 1.193 MB / 0.586 GB, free: 76.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003021/1.182, allocations: 80.91 kB / 0.586 GB, free: 76.19 MB / 410.7 MB Notification: Performance of SimCode: time 1.773e-06/1.182, allocations: 0 / 0.586 GB, free: 76.19 MB / 410.7 MB Notification: Performance of Templates: time 0.04388/1.226, allocations: 24.22 MB / 0.6097 GB, free: 65.5 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)