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.001137/0.001137, allocations: 109.3 kB / 18.36 MB, free: 4.734 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.001094/0.001094, allocations: 187 kB / 19.3 MB, free: 3.812 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.368/1.368, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001227/0.001227, allocations: 60.3 kB / 329.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09437/0.09561, allocations: 46.61 MB / 375.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.1897/0.2854, allocations: 5.006 MB / 380.8 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009865/0.2953, allocations: 10.44 MB / 391.2 MB, free: 4.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007581/0.2962, allocations: 30.06 kB / 391.2 MB, free: 4.164 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001904/0.2981, allocations: 0.6875 MB / 391.9 MB, free: 3.789 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003434/0.3015, allocations: 0.9822 MB / 392.9 MB, free: 3.195 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001881/0.3034, allocations: 0.5938 MB / 393.5 MB, free: 2.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002451/0.3059, allocations: 1.35 MB / 394.9 MB, free: 2.402 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003023/0.3062, allocations: 169 kB / 395 MB, free: 2.324 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004168/0.3066, allocations: 270.7 kB / 395.3 MB, free: 2.203 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003085/0.307, allocations: 320.1 kB / 395.6 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.904e-05/0.307, allocations: 31.97 kB / 395.6 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001847/0.3089, allocations: 0.6795 MB / 396.3 MB, free: 1.875 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.515e-05/0.309, allocations: 105.9 kB / 396.4 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003149/0.3093, allocations: 401.8 kB / 396.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00164/0.3109, allocations: 1.267 MB / 398.1 MB, free: 1.012 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.311, allocations: 4 kB / 398.1 MB, free: 1.008 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.311, allocations: 0 / 398.1 MB, free: 1.008 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.338e-05/0.311, allocations: 0 / 398.1 MB, free: 1.008 MB / 318.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.001889/0.3129, allocations: 1.32 MB / 399.4 MB, free: 64 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.3129, allocations: 9.938 kB / 399.4 MB, free: 64 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001423/0.3131, allocations: 117 kB / 399.5 MB, free: 4 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.3142, allocations: 0.7499 MB / 400.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.43e-05/0.3143, allocations: 19.44 kB / 400.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.278e-05/0.3143, allocations: 30.3 kB / 400.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006584/0.315, allocations: 320.3 kB / 400.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.315, allocations: 0 / 400.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.294e-05/0.3151, allocations: 10.09 kB / 400.6 MB, free: 15.35 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.562e-05/0.3151, allocations: 11.66 kB / 400.7 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000661/0.3157, allocations: 274.1 kB / 400.9 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002044/0.3178, allocations: 1.365 MB / 402.3 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006885/0.3185, allocations: 296.6 kB / 402.6 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004113/0.3189, allocations: 252.5 kB / 402.8 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00451/0.3235, allocations: 3.604 MB / 406.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004259/0.3239, allocations: 190.3 kB / 406.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.374e-06/0.3239, allocations: 0 / 406.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001731/0.3257, allocations: 0.7255 MB / 407.3 MB, free: 10.37 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.976e-05/0.3257, allocations: 55 kB / 407.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001053/0.3268, allocations: 0.8195 MB / 408.2 MB, free: 9.918 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.27e-05/0.3268, allocations: 31.83 kB / 408.2 MB, free: 9.883 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003641/0.3272, allocations: 449.7 kB / 408.7 MB, free: 9.488 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.492e-05/0.3273, allocations: 99.06 kB / 408.8 MB, free: 9.402 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.3274, allocations: 73.66 kB / 408.8 MB, free: 9.355 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.3275, allocations: 321.4 kB / 409.2 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003091/0.3278, allocations: 121 kB / 409.3 MB, free: 8.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000366/0.3282, allocations: 220 kB / 409.5 MB, free: 8.789 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006518/0.3289, allocations: 361.3 kB / 409.8 MB, free: 8.523 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.3289, allocations: 1.125 kB / 409.8 MB, free: 8.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001034/0.3299, allocations: 0.5243 MB / 410.4 MB, free: 8.234 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.33, allocations: 7.312 kB / 410.4 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.076e-05/0.33, allocations: 35.58 kB / 410.4 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002423/0.3303, allocations: 58.47 kB / 410.5 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00031/0.3306, allocations: 68.39 kB / 410.5 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0021/0.3327, allocations: 2.843 MB / 413.4 MB, free: 5.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004401/0.3332, allocations: 42.86 kB / 413.4 MB, free: 5.219 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.981e-05/0.3332, allocations: 23.77 kB / 413.4 MB, free: 5.211 MB / 334.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.0003138/0.3335, allocations: 213 kB / 413.7 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.3337, allocations: 103.1 kB / 413.8 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001101/0.3348, allocations: 495.6 kB / 414.2 MB, free: 4.688 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.3348, allocations: 2.594 kB / 414.2 MB, free: 4.688 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.3348, allocations: 3.5 kB / 414.2 MB, free: 4.688 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3348, allocations: 3.984 kB / 414.2 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007109/0.3355, allocations: 0.5507 MB / 414.8 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-05/0.3356, allocations: 27.88 kB / 414.8 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002622/0.3359, allocations: 49.17 kB / 414.9 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001564/0.336, allocations: 53.33 kB / 414.9 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.968e-05/0.3361, allocations: 14.23 kB / 414.9 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001951/0.338, allocations: 2.853 MB / 417.8 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.338, allocations: 0 / 417.8 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001238/0.3393, allocations: 0.6035 MB / 418.4 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002498/0.3395, allocations: 187.9 kB / 418.6 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.578e-05/0.3396, allocations: 10.38 kB / 418.6 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002342/0.3399, allocations: 11.39 kB / 418.6 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.661e-05/0.34, allocations: 25.5 kB / 418.6 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.928e-05/0.34, allocations: 17.44 kB / 418.6 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000695/0.3407, allocations: 0.5497 MB / 419.2 MB, free: 356 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3407, allocations: 0 / 419.2 MB, free: 356 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.000797/0.3415, allocations: 235.4 kB / 419.4 MB, free: 308 kB / 334.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.0006191/0.3421, allocations: 358.3 kB / 419.8 MB, free: 92 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001047/0.3432, allocations: 0.5902 MB / 420.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3432, allocations: 0 / 420.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000589/0.3438, allocations: 441.5 kB / 420.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004922/0.3443, allocations: 92.2 kB / 420.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002434/0.3468, allocations: 1.566 MB / 422.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005429/0.3473, allocations: 0.9519 MB / 423.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.3474, allocations: 48.3 kB / 423.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3474, allocations: 1.438 kB / 423.5 MB, free: 13.51 MB / 350.1 MB Notification: Performance of Templates: time 0.02261/0.3701, allocations: 17.5 MB / 440.9 MB, free: 12.55 MB / 366.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)