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.001555/0.001556, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002027/0.002027, allocations: 197.2 kB / 18.73 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.408/1.408, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001267, allocations: 64.12 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2477, allocations: 50.54 MB / 408.8 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.006164/0.2539, allocations: 5.088 MB / 413.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01401/0.268, allocations: 10.8 MB / 424.6 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008328/0.2689, allocations: 27.75 kB / 424.7 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002163/0.2711, allocations: 0.705 MB / 425.4 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003632/0.2747, allocations: 1.01 MB / 426.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001873/0.2766, allocations: 0.6077 MB / 427 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002512/0.2792, allocations: 1.385 MB / 428.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003485/0.2795, allocations: 173.2 kB / 428.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004647/0.28, allocations: 294.5 kB / 428.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003864/0.2804, allocations: 314 kB / 429.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.467e-05/0.2805, allocations: 32 kB / 429.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001585/0.2821, allocations: 0.757 MB / 429.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.2822, allocations: 111.3 kB / 430 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003852/0.2826, allocations: 401.4 kB / 430.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001858/0.2845, allocations: 1.28 MB / 431.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.2845, allocations: 0 / 431.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2845, allocations: 0 / 431.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.718e-05/0.2845, allocations: 0 / 431.7 MB, free: 10.59 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.001862/0.2864, allocations: 1.357 MB / 433.1 MB, free: 9.176 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/0.2865, allocations: 16.02 kB / 433.1 MB, free: 9.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.729e-05/0.2865, allocations: 58.73 kB / 433.1 MB, free: 9.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000129/0.2867, allocations: 128.2 kB / 433.3 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009705/0.2877, allocations: 0.7479 MB / 434 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.2877, allocations: 20.56 kB / 434 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.634e-05/0.2878, allocations: 27.98 kB / 434.1 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005797/0.2883, allocations: 317.4 kB / 434.4 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.2884, allocations: 3.984 kB / 434.4 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.97e-05/0.2884, allocations: 16 kB / 434.4 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.2884, allocations: 4 kB / 434.4 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005889/0.289, allocations: 278.1 kB / 434.7 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001884/0.2909, allocations: 1.369 MB / 436 MB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006513/0.2916, allocations: 298.5 kB / 436.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003917/0.292, allocations: 240.7 kB / 436.6 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003188/0.2952, allocations: 2.806 MB / 439.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004188/0.2956, allocations: 207.3 kB / 439.6 MB, free: 2.113 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 4.328e-06/0.2956, allocations: 0 / 439.6 MB, free: 2.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.001358/0.297, allocations: 0.6431 MB / 440.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.087e-05/0.2971, allocations: 55.41 kB / 440.3 MB, free: 1.375 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008457/0.2979, allocations: 0.8111 MB / 441.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.887e-05/0.298, allocations: 29.7 kB / 441.1 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000323/0.2983, allocations: 437 kB / 441.5 MB, free: 84 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.779e-05/0.2984, allocations: 115.1 kB / 441.6 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001379/0.2985, allocations: 81.97 kB / 441.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.2987, allocations: 317.9 kB / 442 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000289/0.2989, allocations: 128.6 kB / 442.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003346/0.2993, allocations: 214.6 kB / 442.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001513/0.3008, allocations: 0.7117 MB / 443.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.3008, allocations: 0 / 443.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009448/0.3018, allocations: 0.5142 MB / 443.6 MB, free: 13.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.3018, allocations: 8 kB / 443.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.375e-05/0.3019, allocations: 35.98 kB / 443.6 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001269/0.302, allocations: 36.78 kB / 443.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003483/0.3024, allocations: 92.16 kB / 443.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001076/0.3035, allocations: 1.449 MB / 445.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003172/0.3038, allocations: 39.77 kB / 445.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-05/0.3038, allocations: 16 kB / 445.3 MB, free: 12.1 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.0003478/0.3042, allocations: 205.1 kB / 445.5 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001342/0.3043, allocations: 111.3 kB / 445.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001072/0.3054, allocations: 0.4924 MB / 446.1 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.3054, allocations: 8 kB / 446.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.3054, allocations: 0 / 446.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.3055, allocations: 3.938 kB / 446.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006104/0.3061, allocations: 0.5696 MB / 446.6 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.387e-05/0.3061, allocations: 36 kB / 446.7 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003227/0.3065, allocations: 59.89 kB / 446.7 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.985e-05/0.3066, allocations: 32.83 kB / 446.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.929e-05/0.3066, allocations: 8 kB / 446.8 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009445/0.3075, allocations: 1.437 MB / 448.2 MB, free: 8.934 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3076, allocations: 0 / 448.2 MB, free: 8.934 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001127/0.3087, allocations: 0.6276 MB / 448.8 MB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002171/0.3089, allocations: 188.4 kB / 449 MB, free: 8.082 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.894e-05/0.309, allocations: 4 kB / 449 MB, free: 8.078 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002419/0.3093, allocations: 15.98 kB / 449.1 MB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.968e-05/0.3094, allocations: 23.97 kB / 449.1 MB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.065e-05/0.3094, allocations: 19.98 kB / 449.1 MB, free: 8.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006682/0.3101, allocations: 0.5387 MB / 449.6 MB, free: 7.473 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3101, allocations: 0 / 449.6 MB, free: 7.473 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000654/0.3107, allocations: 251.3 kB / 449.9 MB, free: 7.227 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.00195/0.3127, allocations: 1.414 MB / 451.3 MB, free: 5.773 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009059/0.3136, allocations: 493.4 kB / 451.8 MB, free: 5.273 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3136, allocations: 4.062 kB / 451.8 MB, free: 5.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004596/0.3141, allocations: 328.2 kB / 452.1 MB, free: 4.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005381/0.3147, allocations: 127.5 kB / 452.2 MB, free: 4.809 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008319/0.323, allocations: 5.934 MB / 458.2 MB, free: 14.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005838/0.3236, allocations: 0.9525 MB / 459.1 MB, free: 13.69 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002663/0.3239, allocations: 89.19 kB / 459.2 MB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003495/0.3243, allocations: 315.3 kB / 459.5 MB, free: 13.3 MB / 382.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3243, allocations: 0 / 459.5 MB, free: 13.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04552/0.3698, allocations: 17.45 MB / 477 MB, free: 11.99 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.66, allocations: 4.406 kB / 477 MB, free: 11.99 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)