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.001536/0.001536, allocations: 108.4 kB / 18.34 MB, free: 4.676 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.001791/0.001791, allocations: 186.9 kB / 19.28 MB, free: 3.75 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.424/1.424, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001403/0.001403, allocations: 51.92 kB / 282.1 MB, free: 2.453 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1062, allocations: 46.62 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.006681/0.1129, allocations: 5.01 MB / 333.7 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01129/0.1242, allocations: 10.45 MB / 344.2 MB, free: 4.215 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008602/0.1252, allocations: 27.81 kB / 344.2 MB, free: 4.188 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001806/0.127, allocations: 0.6748 MB / 344.9 MB, free: 3.508 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002822/0.1299, allocations: 0.9945 MB / 345.9 MB, free: 2.508 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001376/0.1312, allocations: 0.5998 MB / 346.5 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001858/0.1331, allocations: 1.346 MB / 347.8 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002731/0.1334, allocations: 173.1 kB / 348 MB, free: 384 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002955/0.1337, allocations: 278.6 kB / 348.3 MB, free: 104 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003709/0.1341, allocations: 314 kB / 348.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.377e-05/0.1341, allocations: 32 kB / 348.6 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001316/0.1355, allocations: 0.679 MB / 349.3 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001154/0.1356, allocations: 107.3 kB / 349.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000347/0.1359, allocations: 405.4 kB / 349.8 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001353/0.1373, allocations: 1.261 MB / 351 MB, free: 13.31 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1373, allocations: 0 / 351 MB, free: 13.31 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1373, allocations: 4 kB / 351 MB, free: 13.31 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.1374, allocations: 4 kB / 351 MB, free: 13.3 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.001884/0.1392, allocations: 1.315 MB / 352.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.1393, allocations: 11.97 kB / 352.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001434/0.1394, allocations: 123.5 kB / 352.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/0.1405, allocations: 0.7388 MB / 353.2 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.455e-05/0.1405, allocations: 24.5 kB / 353.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.518e-05/0.1406, allocations: 27.98 kB / 353.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006011/0.1412, allocations: 317.4 kB / 353.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.1412, allocations: 0 / 353.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.213e-05/0.1413, allocations: 11.98 kB / 353.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.1413, allocations: 8 kB / 353.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005921/0.1419, allocations: 274.2 kB / 353.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001903/0.1438, allocations: 1.361 MB / 355.2 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007014/0.1445, allocations: 290.5 kB / 355.5 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004364/0.145, allocations: 252.6 kB / 355.8 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004505/0.1495, allocations: 3.619 MB / 359.4 MB, free: 4.184 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000405/0.1499, allocations: 187.2 kB / 359.6 MB, free: 3.988 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.924e-06/0.1499, allocations: 0 / 359.6 MB, free: 3.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001528/0.1514, allocations: 0.7186 MB / 360.3 MB, free: 3.219 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.1515, allocations: 67.39 kB / 360.4 MB, free: 3.141 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008333/0.1523, allocations: 0.8153 MB / 361.2 MB, free: 2.309 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.785e-05/0.1524, allocations: 29.69 kB / 361.2 MB, free: 2.273 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003373/0.1527, allocations: 452.5 kB / 361.6 MB, free: 1.824 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.53e-05/0.1528, allocations: 94.66 kB / 361.7 MB, free: 1.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/0.1529, allocations: 69.94 kB / 361.8 MB, free: 1.656 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.153, allocations: 326 kB / 362.1 MB, free: 1.332 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002707/0.1533, allocations: 120.6 kB / 362.2 MB, free: 1.215 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000333/0.1537, allocations: 224.1 kB / 362.5 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005983/0.1543, allocations: 360.9 kB / 362.8 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.1543, allocations: 0 / 362.8 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008788/0.1552, allocations: 0.5248 MB / 363.3 MB, free: 12 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.1552, allocations: 8 kB / 363.3 MB, free: 4 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.83e-05/0.1553, allocations: 28.05 kB / 363.4 MB, free: 15.97 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002163/0.1555, allocations: 58.05 kB / 363.4 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002911/0.1558, allocations: 71.89 kB / 363.5 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002084/0.1579, allocations: 2.851 MB / 366.3 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002891/0.1582, allocations: 43.67 kB / 366.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.242e-05/0.1582, allocations: 16 kB / 366.4 MB, free: 12.65 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.0002553/0.1585, allocations: 205.7 kB / 366.6 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001172/0.1586, allocations: 110.8 kB / 366.7 MB, free: 12.33 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001051/0.1597, allocations: 0.49 MB / 367.2 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.1597, allocations: 3.938 kB / 367.2 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.1597, allocations: 8 kB / 367.2 MB, free: 11.81 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.1597, allocations: 0 / 367.2 MB, free: 11.81 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000574/0.1603, allocations: 0.5583 MB / 367.8 MB, free: 11.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.104e-05/0.1603, allocations: 28 kB / 367.8 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002545/0.1606, allocations: 35.97 kB / 367.8 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001453/0.1608, allocations: 57.67 kB / 367.9 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.111e-05/0.1608, allocations: 4 kB / 367.9 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001994/0.1628, allocations: 2.84 MB / 370.7 MB, free: 7.961 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.1628, allocations: 0 / 370.7 MB, free: 7.961 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001162/0.164, allocations: 0.6228 MB / 371.4 MB, free: 7.312 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002398/0.1642, allocations: 179.8 kB / 371.5 MB, free: 7.117 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.77e-05/0.1643, allocations: 4 kB / 371.5 MB, free: 7.113 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002422/0.1646, allocations: 15.98 kB / 371.6 MB, free: 7.098 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.191e-05/0.1647, allocations: 31.89 kB / 371.6 MB, free: 7.066 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.749e-05/0.1647, allocations: 12 kB / 371.6 MB, free: 7.055 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006326/0.1654, allocations: 0.5468 MB / 372.1 MB, free: 6.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1654, allocations: 0 / 372.1 MB, free: 6.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000655/0.166, allocations: 243.7 kB / 372.4 MB, free: 6.262 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.000565/0.1666, allocations: 360.2 kB / 372.7 MB, free: 5.902 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001034/0.1676, allocations: 0.5849 MB / 373.3 MB, free: 5.285 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1677, allocations: 0 / 373.3 MB, free: 5.285 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005811/0.1682, allocations: 447.7 kB / 373.8 MB, free: 4.816 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000444/0.1687, allocations: 96.31 kB / 373.8 MB, free: 4.719 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002275/0.171, allocations: 1.508 MB / 375.4 MB, free: 3.18 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004708/0.1715, allocations: 0.9561 MB / 376.3 MB, free: 2.195 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002152/0.1717, allocations: 85.19 kB / 376.4 MB, free: 2.113 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.863e-05/0.1718, allocations: 43.44 kB / 376.4 MB, free: 2.07 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1718, allocations: 0 / 376.4 MB, free: 2.07 MB / 318.1 MB Notification: Performance of Templates: time 0.1779/0.3497, allocations: 8.327 MB / 384.8 MB, free: 53.21 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 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)