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.001491/0.001491, allocations: 186.3 kB / 16.41 MB, free: 5.727 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.888/1.888, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001141/0.001141, allocations: 95.28 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003966/0.0003966, allocations: 8 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3256/0.326, allocations: 47.57 MB / 374.5 MB, free: 45.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1568/0.4829, allocations: 102 MB / 476.5 MB, free: 10.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003782/0.4833, allocations: 79.97 kB / 476.6 MB, free: 10.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.549/1.032, allocations: 89.6 MB / 0.5529 GB, free: 61.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.126e-06/1.032, allocations: 0 / 0.5529 GB, free: 61.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.197e-05/1.032, allocations: 20 kB / 0.5529 GB, free: 61.96 MB / 378.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.004766/1.037, allocations: 1.957 MB / 0.5548 GB, free: 59.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/1.037, allocations: 12.03 kB / 0.5549 GB, free: 59.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002797/1.038, allocations: 193.7 kB / 0.555 GB, free: 59.74 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002746/1.04, allocations: 1.231 MB / 0.5562 GB, free: 58.44 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.66e-05/1.04, allocations: 24.52 kB / 0.5563 GB, free: 58.42 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001163/1.041, allocations: 24 kB / 0.5563 GB, free: 58.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/1.042, allocations: 0.5064 MB / 0.5568 GB, free: 57.87 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/1.042, allocations: 0 / 0.5568 GB, free: 57.87 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.924e-05/1.042, allocations: 19.98 kB / 0.5568 GB, free: 57.85 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/1.042, allocations: 8 kB / 0.5568 GB, free: 57.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001709/1.044, allocations: 0.5059 MB / 0.5573 GB, free: 57.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004393/1.048, allocations: 1.657 MB / 0.5589 GB, free: 55.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001527/1.05, allocations: 417.9 kB / 0.5593 GB, free: 55.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02248/1.072, allocations: 18.1 MB / 0.577 GB, free: 34.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009584/1.073, allocations: 283.7 kB / 0.5773 GB, free: 34.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 4.138e-06/1.073, allocations: 0 / 0.5773 GB, free: 34.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.00341/1.077, allocations: 0.9044 MB / 0.5782 GB, free: 33.28 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.959e-05/1.077, allocations: 162.2 kB / 0.5783 GB, free: 33.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002133/1.079, allocations: 1.223 MB / 0.5795 GB, free: 31.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.926e-05/1.079, allocations: 33.69 kB / 0.5795 GB, free: 31.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005661/1.08, allocations: 0.6349 MB / 0.5802 GB, free: 31.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/1.08, allocations: 86.8 kB / 0.5802 GB, free: 31.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.576e-05/1.08, allocations: 12 kB / 0.5802 GB, free: 31.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.575e-05/1.08, allocations: 338.7 kB / 0.5806 GB, free: 30.72 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007901/1.081, allocations: 177 kB / 0.5807 GB, free: 30.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008738/1.082, allocations: 399.7 kB / 0.5811 GB, free: 30.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008067/1.083, allocations: 232.2 kB / 0.5813 GB, free: 29.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/1.083, allocations: 0 / 0.5813 GB, free: 29.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002091/1.085, allocations: 0.6438 MB / 0.582 GB, free: 29.17 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.795e-05/1.085, allocations: 8 kB / 0.582 GB, free: 29.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.453e-05/1.085, allocations: 40 kB / 0.582 GB, free: 29.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004334/1.085, allocations: 132.8 kB / 0.5821 GB, free: 28.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007886/1.086, allocations: 116 kB / 0.5823 GB, free: 28.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007636/1.087, allocations: 0.6863 MB / 0.5829 GB, free: 28.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001232/1.088, allocations: 83.47 kB / 0.583 GB, free: 28.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.38e-05/1.088, allocations: 40.06 kB / 0.583 GB, free: 28.05 MB / 378.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 () * Number of clocked 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.0007192/1.089, allocations: 280.1 kB / 0.5833 GB, free: 27.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000406/1.09, allocations: 185.8 kB / 0.5835 GB, free: 27.58 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003431/1.093, allocations: 0.8089 MB / 0.5843 GB, free: 26.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/1.093, allocations: 3.938 kB / 0.5843 GB, free: 26.76 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/1.093, allocations: 0 / 0.5843 GB, free: 26.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/1.093, allocations: 4 kB / 0.5843 GB, free: 26.76 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003715/1.097, allocations: 1.374 MB / 0.5856 GB, free: 25.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-05/1.097, allocations: 43.92 kB / 0.5857 GB, free: 25.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004632/1.097, allocations: 59.95 kB / 0.5857 GB, free: 25.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004485/1.098, allocations: 124.8 kB / 0.5858 GB, free: 25.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.935e-05/1.098, allocations: 19.98 kB / 0.5859 GB, free: 25.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007251/1.099, allocations: 0.6695 MB / 0.5865 GB, free: 24.37 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/1.099, allocations: 3.953 kB / 0.5865 GB, free: 24.37 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002124/1.101, allocations: 0.7789 MB / 0.5873 GB, free: 23.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006322/1.101, allocations: 290.6 kB / 0.5876 GB, free: 23.24 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002788/1.102, allocations: 8 kB / 0.5876 GB, free: 23.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000813/1.103, allocations: 43.95 kB / 0.5876 GB, free: 23.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001687/1.103, allocations: 39.95 kB / 0.5876 GB, free: 23.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.28e-05/1.103, allocations: 20 kB / 0.5877 GB, free: 23.13 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001633/1.105, allocations: 0.9497 MB / 0.5886 GB, free: 22.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.105, allocations: 4 kB / 0.5886 GB, free: 22.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001551/1.106, allocations: 367.6 kB / 0.5889 GB, free: 21.8 MB / 378.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) * Number of clocked states: 0 () * 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.001339/1.107, allocations: 0.6216 MB / 0.5896 GB, free: 21.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00253/1.11, allocations: 0.5512 MB / 0.5901 GB, free: 20.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.116e-06/1.11, allocations: 0 / 0.5901 GB, free: 20.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/1.111, allocations: 315.5 kB / 0.5904 GB, free: 20.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001495/1.113, allocations: 234.8 kB / 0.5906 GB, free: 20.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004792/1.118, allocations: 2.554 MB / 0.5931 GB, free: 17.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006276/1.118, allocations: 1.191 MB / 0.5943 GB, free: 16.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002661/1.119, allocations: 79.44 kB / 0.5943 GB, free: 16.16 MB / 378.7 MB Notification: Performance of SimCode: time 1.823e-06/1.119, allocations: 0 / 0.5943 GB, free: 16.16 MB / 378.7 MB Notification: Performance of Templates: time 0.04393/1.163, allocations: 24.23 MB / 0.618 GB, free: 7.91 MB / 394.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)