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.002654/0.002654, allocations: 186.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.437/3.437, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.001694/0.001694, allocations: 90.88 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006252/0.0006255, allocations: 12 kB / 327 MB, free: 15.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1714, allocations: 47.58 MB / 374.5 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.01618/0.1877, allocations: 6.227 MB / 380.8 MB, free: 9.18 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.4267/0.6145, allocations: 15.74 MB / 396.5 MB, free: 8.527 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001689/0.6162, allocations: 33.91 kB / 396.5 MB, free: 8.527 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004907/0.6212, allocations: 0.7133 MB / 397.2 MB, free: 8.523 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0114/0.6326, allocations: 1.552 MB / 398.8 MB, free: 8.43 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009923/0.6426, allocations: 1.081 MB / 399.9 MB, free: 8.355 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0138/0.6565, allocations: 3.052 MB / 402.9 MB, free: 8.016 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009946/0.6576, allocations: 203.5 kB / 403.1 MB, free: 7.926 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001957/0.6596, allocations: 432.2 kB / 403.6 MB, free: 7.793 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00227/0.6619, allocations: 0.5011 MB / 404.1 MB, free: 7.613 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004178/0.6624, allocations: 23.31 kB / 404.1 MB, free: 7.613 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01174/0.6742, allocations: 1.196 MB / 405.3 MB, free: 7.586 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005908/0.6749, allocations: 144.9 kB / 405.4 MB, free: 7.523 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001152/0.676, allocations: 325.3 kB / 405.7 MB, free: 7.434 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005832/0.6819, allocations: 1.519 MB / 407.3 MB, free: 7.047 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.682, allocations: 0 / 407.3 MB, free: 7.047 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.889e-06/0.682, allocations: 0 / 407.3 MB, free: 7.047 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.315e-05/0.6821, allocations: 1.094 kB / 407.3 MB, free: 7.047 MB / 282.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.01241/0.6946, allocations: 1.811 MB / 409.1 MB, free: 5.914 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.154e-05/0.6946, allocations: 9.031 kB / 409.1 MB, free: 5.914 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009318/0.6956, allocations: 193 kB / 409.3 MB, free: 5.816 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00984/0.7055, allocations: 1.275 MB / 410.5 MB, free: 5.227 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.283e-05/0.7056, allocations: 25.05 kB / 410.6 MB, free: 5.223 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002182/0.7058, allocations: 27.31 kB / 410.6 MB, free: 5.219 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006787/0.7126, allocations: 456.2 kB / 411 MB, free: 5.051 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.074e-05/0.7127, allocations: 0 / 411 MB, free: 5.051 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001066/0.7129, allocations: 11.03 kB / 411 MB, free: 5.043 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.14e-05/0.7129, allocations: 7.219 kB / 411.1 MB, free: 5.043 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003265/0.7162, allocations: 0.5108 MB / 411.6 MB, free: 4.848 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01598/0.7323, allocations: 1.632 MB / 413.2 MB, free: 3.672 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00706/0.7394, allocations: 420.6 kB / 413.6 MB, free: 3.461 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04218/0.7816, allocations: 15.31 MB / 428.9 MB, free: 4.289 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001803/0.7835, allocations: 283.7 kB / 429.2 MB, free: 4 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 6.242e-06/0.7836, allocations: 3.938 kB / 429.2 MB, free: 3.996 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.006171/0.7898, allocations: 0.9083 MB / 430.1 MB, free: 3.059 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.935e-05/0.7899, allocations: 59.39 kB / 430.2 MB, free: 2.988 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005002/0.7949, allocations: 1.448 MB / 431.6 MB, free: 1.504 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001815/0.7952, allocations: 37.7 kB / 431.7 MB, free: 1.461 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001204/0.7964, allocations: 0.6271 MB / 432.3 MB, free: 0.832 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002969/0.7968, allocations: 98.73 kB / 432.4 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.015e-05/0.7969, allocations: 8 kB / 432.4 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002026/0.7971, allocations: 332.1 kB / 432.7 MB, free: 404 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00149/0.7986, allocations: 177 kB / 432.9 MB, free: 224 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001732/0.8004, allocations: 383.4 kB / 433.3 MB, free: 15.75 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001609/0.802, allocations: 224.1 kB / 433.5 MB, free: 15.54 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-05/0.8021, allocations: 0 / 433.5 MB, free: 15.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.004068/0.8062, allocations: 0.6436 MB / 434.1 MB, free: 14.88 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.736e-05/0.8063, allocations: 8 kB / 434.1 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001494/0.8064, allocations: 36 kB / 434.2 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007688/0.8072, allocations: 141.2 kB / 434.3 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001333/0.8086, allocations: 119.8 kB / 434.4 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00147/0.8101, allocations: 0.6825 MB / 435.1 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002243/0.8124, allocations: 79.56 kB / 435.2 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002271/0.8127, allocations: 32 kB / 435.2 MB, free: 13.77 MB / 314.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.001396/0.8141, allocations: 286.2 kB / 435.5 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008097/0.8149, allocations: 189.7 kB / 435.7 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006004/0.8209, allocations: 0.794 MB / 436.5 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.3e-05/0.821, allocations: 4 kB / 436.5 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.8211, allocations: 0 / 436.5 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.55e-05/0.8211, allocations: 3.984 kB / 436.5 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007035/0.8281, allocations: 1.347 MB / 437.8 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001387/0.8284, allocations: 40.03 kB / 437.9 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007823/0.8292, allocations: 56.7 kB / 437.9 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006837/0.8299, allocations: 128.8 kB / 438 MB, free: 10.84 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001185/0.83, allocations: 12 kB / 438.1 MB, free: 10.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001369/0.8314, allocations: 0.6738 MB / 438.7 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.141e-05/0.8315, allocations: 3.984 kB / 438.7 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004338/0.8358, allocations: 0.7897 MB / 439.5 MB, free: 9.285 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001369/0.8373, allocations: 270.8 kB / 439.8 MB, free: 9 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006165/0.8379, allocations: 12.12 kB / 439.8 MB, free: 8.988 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001781/0.8397, allocations: 43.95 kB / 439.8 MB, free: 8.945 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003703/0.8402, allocations: 39.91 kB / 439.9 MB, free: 8.906 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000141/0.8403, allocations: 24 kB / 439.9 MB, free: 8.883 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.004143/0.8445, allocations: 0.9458 MB / 440.8 MB, free: 7.918 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.391e-06/0.8446, allocations: 0 / 440.8 MB, free: 7.918 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002863/0.8475, allocations: 339.7 kB / 441.2 MB, free: 7.586 MB / 314.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.0021/0.8496, allocations: 0.5465 MB / 441.7 MB, free: 7.031 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003912/0.8536, allocations: 0.5519 MB / 442.3 MB, free: 6.469 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.779e-06/0.8537, allocations: 0 / 442.3 MB, free: 6.469 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002054/0.8557, allocations: 307.5 kB / 442.6 MB, free: 6.156 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003021/0.8588, allocations: 258.9 kB / 442.8 MB, free: 5.898 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01028/0.8692, allocations: 2.565 MB / 445.4 MB, free: 3.285 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001632/0.8709, allocations: 1.189 MB / 446.6 MB, free: 2.066 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005842/0.8715, allocations: 87.44 kB / 446.7 MB, free: 1.98 MB / 314.7 MB Notification: Performance of SimCode: time 1.703e-06/0.8716, allocations: 0 / 446.7 MB, free: 1.98 MB / 314.7 MB Notification: Performance of Templates: time 0.1073/0.9789, allocations: 24.73 MB / 471.4 MB, free: 9.219 MB / 346.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)