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.001309/0.001309, allocations: 117.2 kB / 17.79 MB, free: 5.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001459/0.001459, allocations: 203.8 kB / 18.74 MB, free: 4.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001982/0.001982, allocations: 67.89 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.27, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.006648/0.2767, allocations: 5.08 MB / 413.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01356/0.2903, allocations: 10.8 MB / 424.6 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009491/0.2913, allocations: 31.75 kB / 424.7 MB, free: 1.566 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001919/0.2933, allocations: 0.6933 MB / 425.4 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003151/0.2964, allocations: 1.01 MB / 426.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001876/0.2983, allocations: 0.596 MB / 427 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002455/0.3008, allocations: 1.389 MB / 428.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000319/0.3012, allocations: 177.2 kB / 428.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003643/0.3015, allocations: 286.5 kB / 428.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003795/0.3019, allocations: 318 kB / 429.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.861e-05/0.302, allocations: 35.98 kB / 429.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001542/0.3035, allocations: 0.7453 MB / 429.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.3037, allocations: 115.2 kB / 430 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003725/0.304, allocations: 397.4 kB / 430.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001738/0.3058, allocations: 1.287 MB / 431.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.3058, allocations: 0 / 431.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3058, allocations: 0 / 431.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.226e-05/0.3058, 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.002112/0.3079, allocations: 1.353 MB / 433 MB, free: 9.094 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.308, allocations: 12.03 kB / 433.1 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.94e-05/0.3081, allocations: 66.72 kB / 433.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.3083, allocations: 124.2 kB / 433.2 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00113/0.3094, allocations: 0.7557 MB / 434 MB, free: 8.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/0.3094, allocations: 20.56 kB / 434 MB, free: 8.059 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.702e-05/0.3095, allocations: 24 kB / 434 MB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006531/0.3102, allocations: 317.3 kB / 434.4 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.3102, allocations: 0 / 434.4 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.224e-05/0.3102, allocations: 8 kB / 434.4 MB, free: 7.715 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.486e-05/0.3102, allocations: 12 kB / 434.4 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006672/0.3109, allocations: 278.2 kB / 434.6 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002067/0.313, allocations: 1.369 MB / 436 MB, free: 5.969 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007344/0.3137, allocations: 302.5 kB / 436.3 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004587/0.3142, allocations: 248.6 kB / 436.6 MB, free: 5.418 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003819/0.318, allocations: 2.802 MB / 439.4 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004689/0.3185, allocations: 207.3 kB / 439.6 MB, free: 2.023 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.784e-06/0.3185, allocations: 0 / 439.6 MB, free: 2.023 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.001506/0.3201, allocations: 0.6315 MB / 440.2 MB, free: 1.363 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.648e-05/0.3201, allocations: 59.41 kB / 440.2 MB, free: 1.293 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009872/0.3211, allocations: 0.811 MB / 441.1 MB, free: 476 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.758e-05/0.3212, allocations: 33.7 kB / 441.1 MB, free: 436 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004376/0.3216, allocations: 445 kB / 441.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.3217, allocations: 111.1 kB / 441.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.3219, allocations: 69.98 kB / 441.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.322, allocations: 329.9 kB / 442 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003046/0.3223, allocations: 124.7 kB / 442.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003958/0.3227, allocations: 214.5 kB / 442.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00164/0.3244, allocations: 0.707 MB / 443.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3244, allocations: 0 / 443.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009998/0.3254, allocations: 0.5143 MB / 443.6 MB, free: 13.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.3254, allocations: 7.938 kB / 443.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.971e-05/0.3255, allocations: 43.98 kB / 443.6 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001384/0.3257, allocations: 28.84 kB / 443.7 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003773/0.3261, allocations: 87.81 kB / 443.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00131/0.3274, allocations: 1.45 MB / 445.2 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003173/0.3277, allocations: 43.83 kB / 445.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.921e-05/0.3278, allocations: 20 kB / 445.3 MB, free: 12.01 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.0003363/0.3281, allocations: 205.7 kB / 445.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.3282, allocations: 111.3 kB / 445.6 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001076/0.3293, allocations: 492.1 kB / 446 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.3293, allocations: 4 kB / 446 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.3293, allocations: 0 / 446 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.3293, allocations: 7.938 kB / 446.1 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006629/0.33, allocations: 0.5736 MB / 446.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-05/0.3301, allocations: 32 kB / 446.7 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003246/0.3304, allocations: 63.88 kB / 446.7 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.254e-05/0.3305, allocations: 24.84 kB / 446.7 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.849e-05/0.3306, allocations: 12 kB / 446.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001157/0.3317, allocations: 1.437 MB / 448.2 MB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3317, allocations: 4.031 kB / 448.2 MB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00122/0.333, allocations: 0.6225 MB / 448.8 MB, free: 8.211 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000226/0.3332, allocations: 184.4 kB / 449 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.304e-05/0.3333, allocations: 12 kB / 449 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002393/0.3335, allocations: 23.97 kB / 449 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.569e-05/0.3336, allocations: 27.91 kB / 449.1 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.661e-05/0.3337, allocations: 8 kB / 449.1 MB, free: 7.941 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006876/0.3343, allocations: 0.5465 MB / 449.6 MB, free: 7.387 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3344, allocations: 0 / 449.6 MB, free: 7.387 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006302/0.335, allocations: 247.3 kB / 449.9 MB, free: 7.145 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.002137/0.3371, allocations: 1.41 MB / 451.3 MB, free: 5.695 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.3382, allocations: 492.7 kB / 451.8 MB, free: 5.195 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.3382, allocations: 4.75 kB / 451.8 MB, free: 5.191 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005344/0.3387, allocations: 332.2 kB / 452.1 MB, free: 4.848 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005652/0.3393, allocations: 116.2 kB / 452.2 MB, free: 4.734 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008996/0.3483, allocations: 5.944 MB / 458.1 MB, free: 14.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000597/0.3489, allocations: 0.9603 MB / 459.1 MB, free: 13.6 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000258/0.3492, allocations: 81.2 kB / 459.2 MB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003647/0.3496, allocations: 315.3 kB / 459.5 MB, free: 13.21 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3496, allocations: 0 / 459.5 MB, free: 13.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05298/0.4026, allocations: 17.46 MB / 476.9 MB, free: 11.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.68, allocations: 11.97 kB / 477 MB, free: 11.9 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)