Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,tolerance=1e-08,outputFormat="mat",numberOfIntervals=1998,variableFilter="time|Q1.vbc|Q1.vbe",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter") translateModel(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,tolerance=1e-08,outputFormat="mat",numberOfIntervals=1998,variableFilter="time|Q1.vbc|Q1.vbe",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 115 kB / 17.93 MB, free: 5.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 189.4 kB / 18.86 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.343/1.343, allocations: 205.1 MB / 224.7 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 55.92 kB / 280.8 MB, free: 3.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.096/0.09716, allocations: 46.63 MB / 327.4 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.006272/0.1035, allocations: 5.018 MB / 332.5 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01135/0.1149, allocations: 10.33 MB / 342.8 MB, free: 5.367 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009542/0.1159, allocations: 8 kB / 342.8 MB, free: 5.359 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001954/0.1179, allocations: 0.625 MB / 343.4 MB, free: 4.73 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003198/0.1211, allocations: 0.8404 MB / 344.3 MB, free: 3.887 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00171/0.1229, allocations: 0.5108 MB / 344.8 MB, free: 3.375 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002356/0.1252, allocations: 1.354 MB / 346.1 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003113/0.1256, allocations: 169.1 kB / 346.3 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000368/0.1259, allocations: 274.5 kB / 346.6 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003287/0.1263, allocations: 314 kB / 346.9 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.22e-05/0.1263, allocations: 32 kB / 346.9 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001576/0.1279, allocations: 0.6714 MB / 347.6 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.319e-05/0.128, allocations: 115.2 kB / 347.7 MB, free: 456 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000339/0.1284, allocations: 401.4 kB / 348.1 MB, free: 52 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001009/0.1294, allocations: 0.9196 MB / 349 MB, free: 15.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.1294, allocations: 0 / 349 MB, free: 15.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1294, allocations: 0 / 349 MB, free: 15.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.74e-05/0.1294, allocations: 3.984 kB / 349 MB, free: 15.12 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.00192/0.1314, allocations: 1.323 MB / 350.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.1314, allocations: 8.031 kB / 350.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.1316, allocations: 111.6 kB / 350.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009883/0.1326, allocations: 0.7466 MB / 351.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.511e-05/0.1326, allocations: 20.56 kB / 351.2 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.006e-05/0.1327, allocations: 28 kB / 351.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006338/0.1333, allocations: 317.3 kB / 351.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.1334, allocations: 4 kB / 351.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.56e-05/0.1334, allocations: 8 kB / 351.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.906e-05/0.1334, allocations: 19.97 kB / 351.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005831/0.134, allocations: 274.2 kB / 351.8 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001839/0.1359, allocations: 1.361 MB / 353.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006569/0.1365, allocations: 298.5 kB / 353.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004002/0.1369, allocations: 244.6 kB / 353.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004202/0.1412, allocations: 3.615 MB / 357.3 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004082/0.1416, allocations: 191.3 kB / 357.5 MB, free: 5.809 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.355e-06/0.1416, allocations: 0 / 357.5 MB, free: 5.809 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001577/0.1432, allocations: 0.7311 MB / 358.3 MB, free: 5.027 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/0.1433, allocations: 55.41 kB / 358.3 MB, free: 4.961 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009273/0.1442, allocations: 0.8192 MB / 359.1 MB, free: 4.125 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.939e-05/0.1442, allocations: 29.7 kB / 359.2 MB, free: 4.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003447/0.1446, allocations: 448.5 kB / 359.6 MB, free: 3.645 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.156e-05/0.1447, allocations: 98.62 kB / 359.7 MB, free: 3.547 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.1448, allocations: 69.94 kB / 359.8 MB, free: 3.473 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.1449, allocations: 322 kB / 360.1 MB, free: 3.152 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002821/0.1452, allocations: 120.7 kB / 360.2 MB, free: 3.035 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003482/0.1456, allocations: 224 kB / 360.4 MB, free: 2.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006299/0.1462, allocations: 360.9 kB / 360.8 MB, free: 2.371 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.1462, allocations: 4 kB / 360.8 MB, free: 2.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009628/0.1472, allocations: 0.5131 MB / 361.3 MB, free: 1.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/0.1472, allocations: 8 kB / 361.3 MB, free: 1.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-05/0.1473, allocations: 36.42 kB / 361.3 MB, free: 1.797 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002305/0.1475, allocations: 57.69 kB / 361.4 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003159/0.1479, allocations: 67.89 kB / 361.4 MB, free: 1.668 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002109/0.15, allocations: 2.859 MB / 364.3 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000336/0.1503, allocations: 43.59 kB / 364.3 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.702e-05/0.1504, allocations: 20 kB / 364.4 MB, free: 14.46 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (VIN.counter,$PRE.VIN.counter,VIN.counter2,$PRE.VIN.counter2,VIN.T0,$PRE.VIN.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003022/0.1507, allocations: 206 kB / 364.6 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001672/0.1509, allocations: 110.6 kB / 364.7 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001156/0.152, allocations: 497 kB / 365.2 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.152, allocations: 4 kB / 365.2 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1521, allocations: 0 / 365.2 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.1521, allocations: 3.984 kB / 365.2 MB, free: 13.63 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006388/0.1527, allocations: 0.5544 MB / 365.7 MB, free: 13.03 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.294e-05/0.1528, allocations: 35.98 kB / 365.8 MB, free: 13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002501/0.153, allocations: 43.97 kB / 365.8 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001605/0.1532, allocations: 45.69 kB / 365.8 MB, free: 12.9 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.233e-05/0.1532, allocations: 19.98 kB / 365.9 MB, free: 12.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002141/0.1554, allocations: 2.84 MB / 368.7 MB, free: 9.766 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.1554, allocations: 0 / 368.7 MB, free: 9.766 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001291/0.1567, allocations: 0.6034 MB / 369.3 MB, free: 9.137 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002676/0.157, allocations: 183.8 kB / 369.5 MB, free: 8.938 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001159/0.1571, allocations: 12.06 kB / 369.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002516/0.1574, allocations: 11.98 kB / 369.5 MB, free: 8.914 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.079e-05/0.1575, allocations: 23.97 kB / 369.5 MB, free: 8.891 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.32e-05/0.1575, allocations: 16.12 kB / 369.6 MB, free: 8.875 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007915/0.1583, allocations: 0.5506 MB / 370.1 MB, free: 8.316 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.643e-06/0.1583, allocations: 0 / 370.1 MB, free: 8.316 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007449/0.1591, allocations: 243.6 kB / 370.3 MB, free: 8.078 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Q1.vbe,Q1.vbc) * Number of discrete variables: 4 ($whenCondition1,VIN.T0,VIN.counter,VIN.counter2) * Number of discrete states: 2 (VIN.counter,VIN.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007804/0.1599, allocations: 364.1 kB / 370.7 MB, free: 7.711 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001154/0.161, allocations: 0.5973 MB / 371.3 MB, free: 7.082 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.187e-06/0.161, allocations: 0 / 371.3 MB, free: 7.082 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006061/0.1617, allocations: 442.9 kB / 371.7 MB, free: 6.617 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005325/0.1622, allocations: 92.47 kB / 371.8 MB, free: 6.523 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002891/0.1651, allocations: 1.799 MB / 373.6 MB, free: 4.688 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005262/0.1656, allocations: 0.9561 MB / 374.6 MB, free: 3.703 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001115/0.1658, allocations: 43.44 kB / 374.6 MB, free: 3.66 MB / 318.1 MB Notification: Performance of SimCode: time 4e-07/0.1658, allocations: 0 / 374.6 MB, free: 3.66 MB / 318.1 MB Notification: Performance of Templates: time 0.1737/0.3395, allocations: 17.5 MB / 392.1 MB, free: 48.82 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)