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.0009568/0.0009568, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.251/1.251, allocations: 226.6 MB / 244.3 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008289/0.000829, allocations: 96.09 kB / 296.4 MB, free: 6.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002014/0.0002015, allocations: 4 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1959/0.1962, allocations: 51.31 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.002811/0.199, allocations: 4.406 MB / 411.9 MB, free: 23.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006618/0.2056, allocations: 9.859 MB / 421.8 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003723/0.206, allocations: 7.938 kB / 421.8 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001165/0.2072, allocations: 0.5907 MB / 422.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00166/0.2089, allocations: 0.7531 MB / 423.1 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007802/0.2097, allocations: 414.9 kB / 423.5 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001232/0.2109, allocations: 1.261 MB / 424.8 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001924/0.2111, allocations: 159.8 kB / 424.9 MB, free: 10.33 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002054/0.2114, allocations: 246.7 kB / 425.2 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002069/0.2116, allocations: 282.2 kB / 425.5 MB, free: 9.809 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.402e-05/0.2116, allocations: 16 kB / 425.5 MB, free: 9.793 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009698/0.2126, allocations: 0.6829 MB / 426.2 MB, free: 9.109 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.143e-05/0.2127, allocations: 95.3 kB / 426.2 MB, free: 9.016 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.429e-05/0.2128, allocations: 197.1 kB / 426.4 MB, free: 8.816 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005574/0.2133, allocations: 0.892 MB / 427.3 MB, free: 7.922 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2133, allocations: 4 kB / 427.3 MB, free: 7.918 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.2133, allocations: 0 / 427.3 MB, free: 7.918 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.225e-06/0.2134, allocations: 0 / 427.3 MB, free: 7.918 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.00122/0.2146, allocations: 1.203 MB / 428.5 MB, free: 6.664 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.756e-05/0.2146, allocations: 8.031 kB / 428.5 MB, free: 6.656 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.622e-05/0.2147, allocations: 122.5 kB / 428.7 MB, free: 6.535 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006672/0.2154, allocations: 0.6962 MB / 429.4 MB, free: 5.785 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.2154, allocations: 16.56 kB / 429.4 MB, free: 5.766 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.664e-05/0.2155, allocations: 28 kB / 429.4 MB, free: 5.738 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005065/0.216, allocations: 329.3 kB / 429.7 MB, free: 5.418 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.216, allocations: 0 / 429.7 MB, free: 5.418 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.794e-05/0.216, allocations: 12 kB / 429.7 MB, free: 5.406 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.216, allocations: 8 kB / 429.7 MB, free: 5.398 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005432/0.2166, allocations: 298.2 kB / 430 MB, free: 5.105 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001326/0.2179, allocations: 1.372 MB / 431.4 MB, free: 3.641 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005617/0.2185, allocations: 315.5 kB / 431.7 MB, free: 3.324 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003363/0.2189, allocations: 252.7 kB / 432 MB, free: 3.074 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002302/0.2212, allocations: 2.821 MB / 434.8 MB, free: 15.88 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004079/0.2216, allocations: 212.9 kB / 435 MB, free: 15.66 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 1.833e-06/0.2216, allocations: 3.938 kB / 435 MB, free: 15.65 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.001354/0.223, allocations: 0.6634 MB / 435.7 MB, free: 14.96 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/0.223, allocations: 55.41 kB / 435.7 MB, free: 14.89 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008026/0.2238, allocations: 0.7955 MB / 436.5 MB, free: 14.08 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.956e-05/0.2239, allocations: 33.7 kB / 436.5 MB, free: 14.04 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003218/0.2242, allocations: 440.5 kB / 437 MB, free: 13.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.728e-05/0.2243, allocations: 114.5 kB / 437.1 MB, free: 13.49 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.888e-05/0.2243, allocations: 8 kB / 437.1 MB, free: 13.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.2244, allocations: 325.9 kB / 437.4 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002893/0.2247, allocations: 124.7 kB / 437.5 MB, free: 13.04 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003455/0.2251, allocations: 226.6 kB / 437.8 MB, free: 12.78 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003341/0.2254, allocations: 168.7 kB / 437.9 MB, free: 12.61 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.2254, allocations: 4 kB / 437.9 MB, free: 12.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008809/0.2263, allocations: 0.5183 MB / 438.4 MB, free: 12.08 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.2263, allocations: 4 kB / 438.4 MB, free: 12.08 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.445e-05/0.2264, allocations: 40 kB / 438.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001305/0.2265, allocations: 28.84 kB / 438.5 MB, free: 12.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003638/0.2269, allocations: 100.2 kB / 438.6 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000897/0.2278, allocations: 1.335 MB / 439.9 MB, free: 10.44 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002881/0.2281, allocations: 47.73 kB / 440 MB, free: 10.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.807e-05/0.2281, allocations: 16 kB / 440 MB, free: 10.38 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.0002609/0.2284, allocations: 213.6 kB / 440.2 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.536e-05/0.2285, allocations: 106.7 kB / 440.3 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001041/0.2296, allocations: 0.5041 MB / 440.8 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.2296, allocations: 0 / 440.8 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.2296, allocations: 4 kB / 440.8 MB, free: 9.535 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.2296, allocations: 0 / 440.8 MB, free: 9.535 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005218/0.2301, allocations: 0.5697 MB / 441.4 MB, free: 8.918 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-05/0.2302, allocations: 39.94 kB / 441.4 MB, free: 8.879 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003223/0.2305, allocations: 71.94 kB / 441.5 MB, free: 8.809 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.066e-05/0.2306, allocations: 24.84 kB / 441.5 MB, free: 8.781 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.694e-05/0.2306, allocations: 8 kB / 441.5 MB, free: 8.773 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008436/0.2315, allocations: 1.335 MB / 442.9 MB, free: 7.305 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2315, allocations: 0 / 442.9 MB, free: 7.305 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001129/0.2326, allocations: 0.6417 MB / 443.5 MB, free: 6.641 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000171/0.2328, allocations: 187.7 kB / 443.7 MB, free: 6.438 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.049e-05/0.2329, allocations: 8 kB / 443.7 MB, free: 6.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002445/0.2331, allocations: 19.98 kB / 443.7 MB, free: 6.41 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.102e-05/0.2332, allocations: 31.95 kB / 443.8 MB, free: 6.379 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.261e-05/0.2332, allocations: 12 kB / 443.8 MB, free: 6.367 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005501/0.2338, allocations: 0.5348 MB / 444.3 MB, free: 5.824 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2338, allocations: 0 / 444.3 MB, free: 5.824 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005111/0.2343, allocations: 235.8 kB / 444.5 MB, free: 5.594 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.000465/0.2348, allocations: 348.1 kB / 444.9 MB, free: 5.242 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008849/0.2357, allocations: 0.5089 MB / 445.4 MB, free: 4.715 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2357, allocations: 3.938 kB / 445.4 MB, free: 4.711 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004557/0.2362, allocations: 336.9 kB / 445.7 MB, free: 4.363 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005051/0.2367, allocations: 110.9 kB / 445.8 MB, free: 4.258 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002602/0.2393, allocations: 1.931 MB / 447.8 MB, free: 2.293 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000417/0.2397, allocations: 0.953 MB / 448.7 MB, free: 1.312 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.678e-05/0.2398, allocations: 51.44 kB / 448.8 MB, free: 1.262 MB / 314.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2398, allocations: 0 / 448.8 MB, free: 1.262 MB / 314.7 MB Notification: Performance of Templates: time 0.01501/0.2549, allocations: 13.89 MB / 462.6 MB, free: 3.363 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)