Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001641/0.001641, allocations: 191.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 226.6 MB / 244.7 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007607/0.0007606, allocations: 91.91 kB / 296.8 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002135/0.0002135, allocations: 4 kB / 356.7 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.205/0.2052, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.003082/0.2083, allocations: 4.411 MB / 412.5 MB, free: 23.28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01109/0.2194, allocations: 9.852 MB / 422.3 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008251/0.2203, allocations: 8 kB / 422.3 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002084/0.2224, allocations: 0.5945 MB / 422.9 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003309/0.2257, allocations: 0.757 MB / 423.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.2274, allocations: 410.9 kB / 424.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001887/0.2293, allocations: 1.269 MB / 425.3 MB, free: 10.37 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002547/0.2296, allocations: 161.8 kB / 425.5 MB, free: 10.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002336/0.2298, allocations: 250.7 kB / 425.7 MB, free: 9.945 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002258/0.2301, allocations: 294.2 kB / 426 MB, free: 9.656 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.545e-05/0.2301, allocations: 20 kB / 426 MB, free: 9.637 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001291/0.2314, allocations: 0.6751 MB / 426.7 MB, free: 8.961 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.582e-05/0.2315, allocations: 87.38 kB / 426.8 MB, free: 8.875 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002554/0.2318, allocations: 391.5 kB / 427.2 MB, free: 8.484 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000655/0.2324, allocations: 0.892 MB / 428.1 MB, free: 7.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2324, allocations: 0 / 428.1 MB, free: 7.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.2325, allocations: 8 kB / 428.1 MB, free: 7.582 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.2325, allocations: 0 / 428.1 MB, free: 7.582 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001404/0.2339, allocations: 1.191 MB / 429.3 MB, free: 6.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.2339, allocations: 8.031 kB / 429.3 MB, free: 6.332 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.234, allocations: 127.4 kB / 429.4 MB, free: 6.207 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007427/0.2348, allocations: 0.7473 MB / 430.2 MB, free: 5.406 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.2348, allocations: 24.44 kB / 430.2 MB, free: 5.383 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.772e-05/0.2349, allocations: 28 kB / 430.2 MB, free: 5.355 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005348/0.2354, allocations: 321.3 kB / 430.5 MB, free: 5.039 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.2354, allocations: 3.938 kB / 430.5 MB, free: 5.035 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.008e-05/0.2355, allocations: 16 kB / 430.5 MB, free: 5.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.2355, allocations: 8 kB / 430.6 MB, free: 5.012 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005494/0.236, allocations: 294.2 kB / 430.8 MB, free: 4.727 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001562/0.2376, allocations: 1.38 MB / 432.2 MB, free: 3.254 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006066/0.2382, allocations: 307.7 kB / 432.5 MB, free: 2.945 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003487/0.2386, allocations: 256.7 kB / 432.8 MB, free: 2.691 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002687/0.2413, allocations: 2.809 MB / 435.6 MB, free: 15.5 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004258/0.2417, allocations: 207.2 kB / 435.8 MB, free: 15.29 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 2.935e-06/0.2418, allocations: 0 / 435.8 MB, free: 15.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.001444/0.2432, allocations: 0.6557 MB / 436.4 MB, free: 14.6 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.2433, allocations: 59.41 kB / 436.5 MB, free: 14.53 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008953/0.2442, allocations: 0.7993 MB / 437.3 MB, free: 13.71 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.117e-05/0.2442, allocations: 33.7 kB / 437.3 MB, free: 13.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003416/0.2446, allocations: 440.5 kB / 437.8 MB, free: 13.24 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.454e-05/0.2446, allocations: 106.5 kB / 437.9 MB, free: 13.13 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.084e-05/0.2447, allocations: 8 kB / 437.9 MB, free: 13.12 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.2448, allocations: 325.9 kB / 438.2 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002877/0.2451, allocations: 128.7 kB / 438.3 MB, free: 12.68 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003424/0.2454, allocations: 226.5 kB / 438.5 MB, free: 12.41 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001577/0.247, allocations: 0.755 MB / 439.3 MB, free: 11.62 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.247, allocations: 0 / 439.3 MB, free: 11.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009336/0.248, allocations: 0.5214 MB / 439.8 MB, free: 11.09 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.248, allocations: 8 kB / 439.8 MB, free: 11.08 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.484e-05/0.2481, allocations: 40 kB / 439.9 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001251/0.2482, allocations: 24.84 kB / 439.9 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003628/0.2486, allocations: 104.1 kB / 440 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009803/0.2496, allocations: 1.339 MB / 441.3 MB, free: 9.441 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000316/0.2499, allocations: 59.64 kB / 441.4 MB, free: 9.383 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.7e-05/0.2499, allocations: 16 kB / 441.4 MB, free: 9.367 MB / 314.7 MB Warning: Assuming fixed start value for the following 1 variables: Q1.vbx:VARIABLE(unit = "V" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.VIN.counter,VIN.counter,$whenCondition1,$PRE.VIN.T0,VIN.T0,$PRE.VIN.counter2,VIN.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003326/0.2503, allocations: 205.5 kB / 441.6 MB, free: 9.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.866e-05/0.2504, allocations: 106.7 kB / 441.7 MB, free: 9.055 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001107/0.2515, allocations: 0.5157 MB / 442.2 MB, free: 8.531 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.2515, allocations: 7.984 kB / 442.2 MB, free: 8.523 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.2515, allocations: 3.938 kB / 442.2 MB, free: 8.52 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.788e-06/0.2515, allocations: 0 / 442.2 MB, free: 8.52 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005848/0.2521, allocations: 0.5698 MB / 442.8 MB, free: 7.902 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.631e-05/0.2522, allocations: 36 kB / 442.8 MB, free: 7.867 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003294/0.2525, allocations: 59.94 kB / 442.9 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.155e-05/0.2526, allocations: 28.84 kB / 442.9 MB, free: 7.777 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.736e-05/0.2527, allocations: 8 kB / 442.9 MB, free: 7.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009131/0.2536, allocations: 1.336 MB / 444.3 MB, free: 6.301 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2536, allocations: 0 / 444.3 MB, free: 6.301 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001191/0.2548, allocations: 0.6349 MB / 444.9 MB, free: 5.645 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002093/0.255, allocations: 191.7 kB / 445.1 MB, free: 5.438 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.185e-05/0.2551, allocations: 3.938 kB / 445.1 MB, free: 5.434 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002665/0.2554, allocations: 23.98 kB / 445.1 MB, free: 5.41 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.084e-05/0.2555, allocations: 35.95 kB / 445.2 MB, free: 5.375 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.309e-05/0.2555, allocations: 8 kB / 445.2 MB, free: 5.367 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006429/0.2562, allocations: 0.5348 MB / 445.7 MB, free: 4.824 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2562, allocations: 0 / 445.7 MB, free: 4.824 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000624/0.2568, allocations: 239.8 kB / 445.9 MB, free: 4.59 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Q1.vbe,Q1.vbc,Q1.vbx) * 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 (22): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006537/0.2575, allocations: 368.2 kB / 446.3 MB, free: 4.219 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009817/0.2585, allocations: 0.5011 MB / 446.8 MB, free: 3.699 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.2585, allocations: 0 / 446.8 MB, free: 3.699 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005412/0.259, allocations: 356.8 kB / 447.1 MB, free: 3.332 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005845/0.2596, allocations: 99.39 kB / 447.2 MB, free: 3.238 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003148/0.2628, allocations: 1.924 MB / 449.2 MB, free: 1.281 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005362/0.2633, allocations: 0.9644 MB / 450.1 MB, free: 296 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.2635, allocations: 47.44 kB / 450.2 MB, free: 248 kB / 314.7 MB Notification: Performance of SimCode: time 6.62e-07/0.2635, allocations: 0 / 450.2 MB, free: 248 kB / 314.7 MB Notification: Performance of Templates: time 0.01737/0.2809, allocations: 13.88 MB / 464.1 MB, free: 2.352 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)