Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001525/0.001525, allocations: 114.9 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00217/0.00217, allocations: 205.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2501, allocations: 50.53 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.005625/0.2557, allocations: 5.092 MB / 413.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01111/0.2669, allocations: 10.8 MB / 424.6 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000759/0.2677, allocations: 31.75 kB / 424.7 MB, free: 1.566 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0018/0.2695, allocations: 0.705 MB / 425.4 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00281/0.2724, allocations: 1.01 MB / 426.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001533/0.2739, allocations: 0.5999 MB / 427 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002046/0.276, allocations: 1.385 MB / 428.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002735/0.2763, allocations: 177.2 kB / 428.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003279/0.2766, allocations: 286.6 kB / 428.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003084/0.2769, allocations: 321.9 kB / 429.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.596e-05/0.277, allocations: 32 kB / 429.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001435/0.2784, allocations: 0.7453 MB / 429.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.959e-05/0.2786, allocations: 115.2 kB / 430 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003371/0.2789, allocations: 405.4 kB / 430.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00158/0.2805, allocations: 1.276 MB / 431.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.2805, allocations: 0 / 431.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2805, allocations: 0 / 431.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.032e-05/0.2805, allocations: 0 / 431.7 MB, free: 10.5 MB / 350.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.001979/0.2825, allocations: 1.357 MB / 433.1 MB, free: 9.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.2826, allocations: 8.031 kB / 433.1 MB, free: 9.074 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.251e-05/0.2827, allocations: 66.72 kB / 433.1 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.2828, allocations: 128.2 kB / 433.3 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001015/0.2838, allocations: 0.7557 MB / 434 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.036e-05/0.2839, allocations: 20.56 kB / 434 MB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.684e-05/0.2839, allocations: 24 kB / 434 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006173/0.2846, allocations: 317.3 kB / 434.4 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.2846, allocations: 0 / 434.4 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.065e-05/0.2846, allocations: 8 kB / 434.4 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.2846, allocations: 15.98 kB / 434.4 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006155/0.2853, allocations: 274.2 kB / 434.7 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001826/0.2871, allocations: 1.373 MB / 436 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006813/0.2878, allocations: 302 kB / 436.3 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004114/0.2882, allocations: 244.7 kB / 436.6 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003221/0.2915, allocations: 2.806 MB / 439.4 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004462/0.2919, allocations: 203.3 kB / 439.6 MB, free: 2.016 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 2.214e-06/0.2919, allocations: 4 kB / 439.6 MB, free: 2.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.001435/0.2934, allocations: 0.6353 MB / 440.2 MB, free: 1.348 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.533e-05/0.2934, allocations: 59.41 kB / 440.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008421/0.2943, allocations: 0.811 MB / 441.1 MB, free: 460 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.239e-05/0.2943, allocations: 33.7 kB / 441.1 MB, free: 420 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000334/0.2947, allocations: 441.1 kB / 441.5 MB, free: 15.97 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.345e-05/0.2948, allocations: 111.1 kB / 441.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/0.2949, allocations: 73.97 kB / 441.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.295, allocations: 325.7 kB / 442 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003014/0.2953, allocations: 124.7 kB / 442.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003419/0.2957, allocations: 218.5 kB / 442.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001546/0.2972, allocations: 0.7117 MB / 443.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.2972, allocations: 4 kB / 443.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001009/0.2983, allocations: 0.5104 MB / 443.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.2983, allocations: 11.12 kB / 443.6 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.898e-05/0.2984, allocations: 36 kB / 443.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001357/0.2985, allocations: 36.77 kB / 443.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000368/0.2989, allocations: 87.83 kB / 443.8 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001107/0.3, allocations: 1.449 MB / 445.2 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000347/0.3004, allocations: 43.86 kB / 445.3 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.045e-05/0.3004, allocations: 20 kB / 445.3 MB, free: 12 MB / 366.1 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 (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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000303/0.3007, allocations: 197.7 kB / 445.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/0.3009, allocations: 115.3 kB / 445.6 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001031/0.3019, allocations: 499.4 kB / 446.1 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3019, allocations: 0 / 446.1 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.3019, allocations: 4 kB / 446.1 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/0.3019, allocations: 11.92 kB / 446.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005737/0.3025, allocations: 0.5735 MB / 446.7 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.87e-05/0.3026, allocations: 36 kB / 446.7 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003263/0.3029, allocations: 59.89 kB / 446.7 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.974e-05/0.303, allocations: 24.83 kB / 446.8 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.812e-05/0.303, allocations: 12 kB / 446.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009464/0.304, allocations: 1.437 MB / 448.2 MB, free: 8.832 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.304, allocations: 0 / 448.2 MB, free: 8.832 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.3052, allocations: 0.6197 MB / 448.8 MB, free: 8.191 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002237/0.3054, allocations: 184.4 kB / 449 MB, free: 7.992 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.135e-05/0.3055, allocations: 8 kB / 449 MB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000244/0.3057, allocations: 19.98 kB / 449 MB, free: 7.965 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/0.3058, allocations: 28.14 kB / 449.1 MB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.59e-05/0.3059, allocations: 11.98 kB / 449.1 MB, free: 7.926 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006034/0.3065, allocations: 0.5465 MB / 449.6 MB, free: 7.371 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3065, allocations: 0 / 449.6 MB, free: 7.371 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006216/0.3071, allocations: 247.3 kB / 449.9 MB, free: 7.129 MB / 366.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.001895/0.309, allocations: 1.421 MB / 451.3 MB, free: 5.668 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009315/0.3099, allocations: 492.8 kB / 451.8 MB, free: 5.168 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.31, allocations: 0.75 kB / 451.8 MB, free: 5.168 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004908/0.3105, allocations: 332.2 kB / 452.1 MB, free: 4.824 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005626/0.311, allocations: 110.5 kB / 452.2 MB, free: 4.719 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008265/0.3193, allocations: 5.944 MB / 458.2 MB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005193/0.3199, allocations: 0.9525 MB / 459.1 MB, free: 13.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002982/0.3202, allocations: 81.2 kB / 459.2 MB, free: 13.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003447/0.3205, allocations: 319.3 kB / 459.5 MB, free: 13.2 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3205, allocations: 0 / 459.5 MB, free: 13.2 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04052/0.3611, allocations: 17.46 MB / 477 MB, free: 11.89 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.66, allocations: 4.344 kB / 477 MB, free: 11.88 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter_res.csv --start-time 0 --stop-time 1e-07 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 1.001e-10 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)