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.0015/0.0015, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.989/1.989, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002786/0.002786, allocations: 86.31 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.12e-05/2.128e-05, allocations: 4 kB / 314.8 MB, free: 9.164 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/0.3325, allocations: 47.57 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1693/0.5018, allocations: 101.2 MB / 463.6 MB, free: 1.055 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002856/0.5022, allocations: 71.97 kB / 463.6 MB, free: 0.9844 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.554/1.056, allocations: 85.04 MB / 0.5358 GB, free: 96.36 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.485e-06/1.056, allocations: 0 / 0.5358 GB, free: 96.36 MB / 395.1 MB Notification: Performance of Transformations before backend: time 5.35e-05/1.056, allocations: 22.84 kB / 0.5358 GB, free: 96.36 MB / 395.1 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.005033/1.061, allocations: 1.608 MB / 0.5374 GB, free: 95.34 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/1.062, allocations: 14.78 kB / 0.5374 GB, free: 95.33 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004233/1.062, allocations: 192.1 kB / 0.5376 GB, free: 95.23 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002901/1.065, allocations: 1.214 MB / 0.5388 GB, free: 94.6 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.166e-05/1.065, allocations: 13.33 kB / 0.5388 GB, free: 94.59 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/1.065, allocations: 25.03 kB / 0.5388 GB, free: 94.59 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008564/1.066, allocations: 362 kB / 0.5392 GB, free: 94.48 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008259/1.067, allocations: 404.8 kB / 0.5396 GB, free: 94.29 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/1.067, allocations: 6.562 kB / 0.5396 GB, free: 94.29 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.493e-05/1.067, allocations: 7.312 kB / 0.5396 GB, free: 94.29 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.907e-05/1.067, allocations: 7.281 kB / 0.5396 GB, free: 94.29 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004282/1.071, allocations: 1.6 MB / 0.5411 GB, free: 93.48 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005808/1.072, allocations: 262.1 kB / 0.5414 GB, free: 93.34 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006064/1.072, allocations: 350.5 kB / 0.5417 GB, free: 93.21 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02359/1.096, allocations: 18.18 MB / 0.5595 GB, free: 78.62 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004322/1.097, allocations: 198.1 kB / 0.5597 GB, free: 78.53 MB / 395.1 MB Notification: Performance of pre-optimization done (n=29): time 3.927e-06/1.097, allocations: 0 / 0.5597 GB, free: 78.53 MB / 395.1 MB Notification: Performance of matching and sorting (n=29): time 0.001257/1.098, allocations: 487.3 kB / 0.5601 GB, free: 78.32 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.299e-05/1.098, allocations: 164.5 kB / 0.5603 GB, free: 78.13 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001833/1.1, allocations: 1.12 MB / 0.5614 GB, free: 77.59 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 9.005e-05/1.1, allocations: 33.67 kB / 0.5614 GB, free: 77.55 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005561/1.1, allocations: 0.6351 MB / 0.562 GB, free: 76.95 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/1.101, allocations: 82.94 kB / 0.5621 GB, free: 76.88 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.673e-05/1.101, allocations: 0 / 0.5621 GB, free: 76.88 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 7.313e-05/1.101, allocations: 335.5 kB / 0.5624 GB, free: 76.54 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002694/1.101, allocations: 101.1 kB / 0.5625 GB, free: 76.44 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003395/1.101, allocations: 318.7 kB / 0.5628 GB, free: 76.02 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003696/1.102, allocations: 136.1 kB / 0.563 GB, free: 75.89 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.565e-06/1.102, allocations: 4 kB / 0.563 GB, free: 75.89 MB / 395.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001043/1.103, allocations: 463.7 kB / 0.5634 GB, free: 75.43 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/1.103, allocations: 11.98 kB / 0.5634 GB, free: 75.41 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.179e-05/1.103, allocations: 36 kB / 0.5635 GB, free: 75.38 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003824/1.103, allocations: 137.7 kB / 0.5636 GB, free: 75.24 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007247/1.104, allocations: 119.9 kB / 0.5637 GB, free: 75.12 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007082/1.105, allocations: 0.6958 MB / 0.5644 GB, free: 74.41 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001221/1.106, allocations: 79.39 kB / 0.5645 GB, free: 74.33 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.437e-05/1.106, allocations: 36 kB / 0.5645 GB, free: 74.29 MB / 395.1 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.000184/1.106, allocations: 124.8 kB / 0.5646 GB, free: 74.16 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002677/1.107, allocations: 188.5 kB / 0.5648 GB, free: 73.98 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00247/1.109, allocations: 0.6582 MB / 0.5654 GB, free: 73.32 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-06/1.109, allocations: 4 kB / 0.5654 GB, free: 73.32 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/1.109, allocations: 0 / 0.5654 GB, free: 73.32 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.166e-06/1.109, allocations: 3.984 kB / 0.5654 GB, free: 73.31 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002586/1.112, allocations: 1.178 MB / 0.5666 GB, free: 72.09 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.359e-05/1.112, allocations: 36.06 kB / 0.5666 GB, free: 72.05 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004695/1.112, allocations: 51.95 kB / 0.5667 GB, free: 72 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003208/1.113, allocations: 130.3 kB / 0.5668 GB, free: 71.87 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.215e-05/1.113, allocations: 20.05 kB / 0.5668 GB, free: 71.85 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007125/1.114, allocations: 0.6891 MB / 0.5675 GB, free: 71.14 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.369e-06/1.114, allocations: 0 / 0.5675 GB, free: 71.14 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/1.115, allocations: 0.6222 MB / 0.5681 GB, free: 70.47 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005806/1.115, allocations: 286.7 kB / 0.5684 GB, free: 70.17 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002474/1.116, allocations: 3.953 kB / 0.5684 GB, free: 70.16 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008584/1.116, allocations: 39.95 kB / 0.5684 GB, free: 70.12 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001567/1.117, allocations: 51.17 kB / 0.5685 GB, free: 70.08 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.114e-05/1.117, allocations: 19.98 kB / 0.5685 GB, free: 70.06 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001454/1.118, allocations: 0.8328 MB / 0.5693 GB, free: 69.21 MB / 395.1 MB Notification: Performance of sort global known variables: time 8.12e-07/1.118, allocations: 0 / 0.5693 GB, free: 69.21 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001498/1.12, allocations: 343.4 kB / 0.5696 GB, free: 68.88 MB / 395.1 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.001298/1.121, allocations: 0.7266 MB / 0.5703 GB, free: 68.2 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.001024/1.122, allocations: 392.4 kB / 0.5707 GB, free: 67.81 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/1.122, allocations: 384 / 0.5707 GB, free: 67.81 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005306/1.123, allocations: 235.6 kB / 0.5709 GB, free: 67.57 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001452/1.124, allocations: 227.8 kB / 0.5711 GB, free: 67.34 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003509/1.128, allocations: 1.563 MB / 0.5727 GB, free: 65.73 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006132/1.128, allocations: 1.182 MB / 0.5738 GB, free: 64.52 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002497/1.129, allocations: 79.44 kB / 0.5739 GB, free: 64.44 MB / 395.1 MB Notification: Performance of SimCode: time 1.042e-06/1.129, allocations: 0 / 0.5739 GB, free: 64.44 MB / 395.1 MB Notification: Performance of Templates: time 0.04249/1.171, allocations: 24.15 MB / 0.5975 GB, free: 40.28 MB / 395.1 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)