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.000988/0.000988, allocations: 179.4 kB / 16.41 MB, free: 5.707 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.344/1.344, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0008514/0.0008514, allocations: 97.11 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003136/0.0003137, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2159/0.2163, allocations: 47.57 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.00548/0.2218, allocations: 6.783 MB / 381.3 MB, free: 40.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01523/0.2371, allocations: 16.78 MB / 398.1 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001267/0.2384, allocations: 31.75 kB / 398.1 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002015/0.2404, allocations: 0.6848 MB / 398.8 MB, free: 24.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004849/0.2453, allocations: 1.39 MB / 400.2 MB, free: 23.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003236/0.2485, allocations: 0.995 MB / 401.2 MB, free: 22.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003752/0.2523, allocations: 2.981 MB / 404.2 MB, free: 19.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003304/0.2526, allocations: 205.1 kB / 404.4 MB, free: 18.9 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004403/0.2531, allocations: 445.8 kB / 404.8 MB, free: 18.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003815/0.2535, allocations: 0.4971 MB / 405.3 MB, free: 17.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.883e-05/0.2536, allocations: 24 kB / 405.4 MB, free: 17.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002822/0.2564, allocations: 1.058 MB / 406.4 MB, free: 16.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.2565, allocations: 147 kB / 406.6 MB, free: 16.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000258/0.2568, allocations: 328.8 kB / 406.9 MB, free: 16.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001166/0.258, allocations: 1.566 MB / 408.4 MB, free: 14.84 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.258, allocations: 4 kB / 408.4 MB, free: 14.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.258, allocations: 0 / 408.4 MB, free: 14.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.61e-05/0.258, allocations: 0 / 408.4 MB, free: 14.83 MB / 298.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.002176/0.2602, allocations: 1.823 MB / 410.3 MB, free: 12.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.2602, allocations: 8.031 kB / 410.3 MB, free: 12.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000165/0.2604, allocations: 193.7 kB / 410.5 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001463/0.2619, allocations: 1.29 MB / 411.8 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/0.2619, allocations: 24.5 kB / 411.8 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.333e-05/0.262, allocations: 27.98 kB / 411.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007714/0.2628, allocations: 453.1 kB / 412.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.2628, allocations: 4 kB / 412.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.407e-05/0.2628, allocations: 15.98 kB / 412.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.2628, allocations: 8 kB / 412.3 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009511/0.2638, allocations: 0.5059 MB / 412.8 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002115/0.2659, allocations: 1.634 MB / 414.4 MB, free: 8.664 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007941/0.2667, allocations: 423.3 kB / 414.8 MB, free: 8.242 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006073/0.2673, allocations: 433.8 kB / 415.3 MB, free: 7.816 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01237/0.2797, allocations: 15.26 MB / 430.5 MB, free: 6.484 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006084/0.2804, allocations: 275.7 kB / 430.8 MB, free: 6.203 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 2.264e-06/0.2804, allocations: 0 / 430.8 MB, free: 6.203 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.002066/0.2825, allocations: 0.92 MB / 431.7 MB, free: 5.254 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.257e-05/0.2825, allocations: 59.41 kB / 431.8 MB, free: 5.184 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001505/0.284, allocations: 1.444 MB / 433.2 MB, free: 3.703 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.417e-05/0.2841, allocations: 29.7 kB / 433.2 MB, free: 3.668 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005296/0.2846, allocations: 0.7227 MB / 434 MB, free: 2.941 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.885e-05/0.2847, allocations: 102.6 kB / 434.1 MB, free: 2.84 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.428e-05/0.2847, allocations: 8 kB / 434.1 MB, free: 2.832 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.367e-05/0.2848, allocations: 326 kB / 434.4 MB, free: 2.508 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004317/0.2853, allocations: 181 kB / 434.6 MB, free: 2.328 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005214/0.2858, allocations: 379.4 kB / 434.9 MB, free: 1.867 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004646/0.2863, allocations: 228 kB / 435.2 MB, free: 1.645 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.2863, allocations: 0 / 435.2 MB, free: 1.645 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001342/0.2876, allocations: 0.7943 MB / 436 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.2877, allocations: 11.94 kB / 436 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.245e-05/0.2877, allocations: 43.95 kB / 436 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002927/0.288, allocations: 132.8 kB / 436.1 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004098/0.2884, allocations: 124.1 kB / 436.3 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005711/0.289, allocations: 0.6772 MB / 436.9 MB, free: 15.83 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000517/0.2896, allocations: 79.56 kB / 437 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.241e-05/0.2896, allocations: 36 kB / 437 MB, free: 15.71 MB / 330.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.0003583/0.29, allocations: 280 kB / 437.3 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/0.2902, allocations: 189.7 kB / 437.5 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001794/0.292, allocations: 0.7863 MB / 438.3 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.292, allocations: 4 kB / 438.3 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.292, allocations: 0 / 438.3 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.292, allocations: 0 / 438.3 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001946/0.2939, allocations: 1.347 MB / 439.6 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.029e-05/0.294, allocations: 40.03 kB / 439.7 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002476/0.2943, allocations: 55.94 kB / 439.7 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002166/0.2945, allocations: 128.8 kB / 439.9 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.463e-05/0.2945, allocations: 19.98 kB / 439.9 MB, free: 12.78 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004972/0.295, allocations: 0.6695 MB / 440.6 MB, free: 12.09 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.295, allocations: 7.922 kB / 440.6 MB, free: 12.08 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001201/0.2962, allocations: 0.7514 MB / 441.3 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003113/0.2966, allocations: 278.7 kB / 441.6 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001548/0.2967, allocations: 15.97 kB / 441.6 MB, free: 10.99 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004287/0.2972, allocations: 43.91 kB / 441.6 MB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.826e-05/0.2973, allocations: 35.95 kB / 441.7 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.626e-05/0.2973, allocations: 27.98 kB / 441.7 MB, free: 10.88 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001067/0.2984, allocations: 0.9458 MB / 442.6 MB, free: 9.918 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2984, allocations: 0 / 442.6 MB, free: 9.918 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007817/0.2992, allocations: 327.8 kB / 443 MB, free: 9.598 MB / 330.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.0006914/0.2999, allocations: 0.5506 MB / 443.5 MB, free: 9.039 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001197/0.3011, allocations: 0.5473 MB / 444.1 MB, free: 8.48 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.3011, allocations: 4.125 kB / 444.1 MB, free: 8.477 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006074/0.3017, allocations: 315.3 kB / 444.4 MB, free: 8.156 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008421/0.3026, allocations: 246.9 kB / 444.6 MB, free: 7.91 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003097/0.3057, allocations: 2.584 MB / 447.2 MB, free: 5.277 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005462/0.3063, allocations: 1.157 MB / 448.4 MB, free: 4.09 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001434/0.3064, allocations: 87.44 kB / 448.4 MB, free: 4.004 MB / 330.7 MB Notification: Performance of SimCode: time 3.01e-07/0.3064, allocations: 0 / 448.4 MB, free: 4.004 MB / 330.7 MB Notification: Performance of Templates: time 0.02959/0.336, allocations: 25.73 MB / 474.2 MB, free: 10.27 MB / 362.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)