Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001288/0.001288, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001474/0.001474, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00102/0.00102, allocations: 55.48 kB / 301.3 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.087/0.08803, allocations: 49.44 MB / 350.7 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.006055/0.09413, allocations: 5.07 MB / 355.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0112/0.1054, allocations: 10.78 MB / 366.6 MB, free: 4.496 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007571/0.1062, allocations: 11.94 kB / 366.6 MB, free: 4.484 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001819/0.1081, allocations: 0.6907 MB / 367.3 MB, free: 3.789 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003023/0.1111, allocations: 1.01 MB / 368.3 MB, free: 2.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001523/0.1126, allocations: 0.5921 MB / 368.9 MB, free: 2.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00211/0.1148, allocations: 1.369 MB / 370.2 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002829/0.1151, allocations: 185.1 kB / 370.4 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003315/0.1154, allocations: 278.6 kB / 370.7 MB, free: 344 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003148/0.1157, allocations: 325.9 kB / 371 MB, free: 16 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1564/0.2722, allocations: 31.33 kB / 371 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002034/0.2742, allocations: 0.7353 MB / 371.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.2744, allocations: 109.1 kB / 371.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003868/0.2748, allocations: 399.9 kB / 372.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001611/0.2764, allocations: 1.259 MB / 373.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.2764, allocations: 3.25 kB / 373.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2764, allocations: 0 / 373.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.436e-05/0.2764, allocations: 0 / 373.5 MB, free: 11.49 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.00206/0.2785, allocations: 1.317 MB / 374.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.2786, allocations: 9.75 kB / 374.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001515/0.2787, allocations: 117.8 kB / 375 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009104/0.2796, allocations: 0.7452 MB / 375.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.2797, allocations: 21.38 kB / 375.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.951e-05/0.2797, allocations: 29.98 kB / 375.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005992/0.2803, allocations: 319.4 kB / 376.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.2804, allocations: 1.734 kB / 376.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.188e-05/0.2804, allocations: 11.16 kB / 376.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.2804, allocations: 12.28 kB / 376.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006091/0.281, allocations: 276.1 kB / 376.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001748/0.2828, allocations: 1.371 MB / 377.8 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006579/0.2835, allocations: 298.3 kB / 378 MB, free: 9.613 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003966/0.2839, allocations: 247.1 kB / 378.3 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003647/0.2875, allocations: 3.592 MB / 381.9 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004322/0.288, allocations: 196.5 kB / 382.1 MB, free: 6.586 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.875e-06/0.288, allocations: 0 / 382.1 MB, free: 6.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001602/0.2896, allocations: 0.7222 MB / 382.8 MB, free: 6.285 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.866e-05/0.2896, allocations: 58.56 kB / 382.8 MB, free: 6.223 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009527/0.2906, allocations: 0.8147 MB / 383.7 MB, free: 6.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.752e-05/0.2906, allocations: 31.2 kB / 383.7 MB, free: 6.039 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000285/0.2909, allocations: 452.4 kB / 384.1 MB, free: 5.695 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.3e-05/0.291, allocations: 96.22 kB / 384.2 MB, free: 5.625 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.2911, allocations: 74.17 kB / 384.3 MB, free: 5.582 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.849e-05/0.2912, allocations: 327.4 kB / 384.6 MB, free: 5.266 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002872/0.2915, allocations: 118.1 kB / 384.7 MB, free: 5.227 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003312/0.2918, allocations: 227.1 kB / 385 MB, free: 5.059 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000602/0.2924, allocations: 366.3 kB / 385.3 MB, free: 4.824 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.2924, allocations: 5.906 kB / 385.3 MB, free: 4.824 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000991/0.2934, allocations: 0.5124 MB / 385.8 MB, free: 4.613 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.2935, allocations: 7.734 kB / 385.8 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.912e-05/0.2935, allocations: 36.19 kB / 385.9 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002385/0.2938, allocations: 51.09 kB / 385.9 MB, free: 4.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003163/0.2941, allocations: 79.88 kB / 386 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001405/0.2955, allocations: 2.846 MB / 388.9 MB, free: 1.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004052/0.2959, allocations: 46.58 kB / 388.9 MB, free: 1.707 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.226e-05/0.296, allocations: 20.25 kB / 388.9 MB, free: 1.703 MB / 302.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.0002756/0.2963, allocations: 195.4 kB / 389.1 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.2964, allocations: 115 kB / 389.2 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001053/0.2974, allocations: 497.3 kB / 389.7 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.2975, allocations: 3.906 kB / 389.7 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.2975, allocations: 0 / 389.7 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.2975, allocations: 5.281 kB / 389.7 MB, free: 1.262 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006389/0.2981, allocations: 0.5495 MB / 390.3 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.52e-05/0.2982, allocations: 35 kB / 390.3 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002407/0.2984, allocations: 37.03 kB / 390.3 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001416/0.2986, allocations: 61.56 kB / 390.4 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.614e-05/0.2986, allocations: 16.17 kB / 390.4 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0017/0.3003, allocations: 2.836 MB / 393.2 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.3003, allocations: 1.188 kB / 393.2 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.3016, allocations: 0.612 MB / 393.9 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002642/0.3019, allocations: 179.1 kB / 394 MB, free: 13.58 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.452e-05/0.302, allocations: 9.938 kB / 394 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002336/0.3022, allocations: 17.02 kB / 394.1 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.353e-05/0.3023, allocations: 29.86 kB / 394.1 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.623e-05/0.3023, allocations: 12.41 kB / 394.1 MB, free: 13.56 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007049/0.303, allocations: 0.5492 MB / 394.7 MB, free: 13.32 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3031, allocations: 1.062 kB / 394.7 MB, free: 13.32 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008217/0.3039, allocations: 240 kB / 394.9 MB, free: 13.28 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.0005934/0.3045, allocations: 357.3 kB / 395.2 MB, free: 13.14 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001208/0.3057, allocations: 0.5877 MB / 395.8 MB, free: 12.79 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3057, allocations: 0.875 kB / 395.8 MB, free: 12.79 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006061/0.3063, allocations: 447.5 kB / 396.3 MB, free: 12.47 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006293/0.307, allocations: 112.6 kB / 396.4 MB, free: 12.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002443/0.3094, allocations: 1.564 MB / 397.9 MB, free: 11.57 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004697/0.3099, allocations: 0.9556 MB / 398.9 MB, free: 10.86 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.31, allocations: 48 kB / 398.9 MB, free: 10.85 MB / 318.1 MB Notification: Performance of SimCode: time 2.795e-06/0.31, allocations: 0 / 398.9 MB, free: 10.85 MB / 318.1 MB Notification: Performance of Templates: time 0.02083/0.3309, allocations: 17.52 MB / 416.5 MB, free: 13.2 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)