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.001043/0.001043, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00105/0.00105, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 60.5 kB / 307 MB, free: 0.5898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08164/0.08285, allocations: 50.54 MB / 357.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.005484/0.08837, allocations: 5.077 MB / 362.7 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1566/0.245, allocations: 10.8 MB / 373.5 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006459/0.2457, allocations: 7.5 kB / 373.5 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001866/0.2476, allocations: 0.6915 MB / 374.2 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002852/0.2504, allocations: 1.013 MB / 375.2 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001788/0.2522, allocations: 0.6053 MB / 375.8 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002099/0.2544, allocations: 1.378 MB / 377.2 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002636/0.2546, allocations: 175.3 kB / 377.3 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002733/0.2549, allocations: 285.9 kB / 377.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003189/0.2552, allocations: 314 kB / 377.9 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.238e-05/0.2553, allocations: 31.78 kB / 377.9 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001474/0.2568, allocations: 0.7533 MB / 378.7 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.923e-05/0.2569, allocations: 107.3 kB / 378.8 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003449/0.2573, allocations: 406.3 kB / 379.2 MB, free: 8.203 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002042/0.2593, allocations: 1.258 MB / 380.5 MB, free: 7.973 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.79e-06/0.2593, allocations: 1.781 kB / 380.5 MB, free: 7.973 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2593, allocations: 1.688 kB / 380.5 MB, free: 7.973 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.2594, allocations: 0 / 380.5 MB, free: 7.973 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.001748/0.2611, allocations: 1.321 MB / 381.8 MB, free: 7.121 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.2612, allocations: 9.984 kB / 381.8 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.305e-05/0.2612, allocations: 65.8 kB / 381.9 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001184/0.2613, allocations: 111.8 kB / 382 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008147/0.2622, allocations: 0.751 MB / 382.7 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.2622, allocations: 24.64 kB / 382.7 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.352e-05/0.2623, allocations: 28.86 kB / 382.8 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005796/0.2628, allocations: 316.5 kB / 383.1 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.567e-06/0.2629, allocations: 0 / 383.1 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.123e-05/0.2629, allocations: 10.59 kB / 383.1 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.2629, allocations: 12.88 kB / 383.1 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006251/0.2636, allocations: 278.6 kB / 383.4 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.2652, allocations: 1.378 MB / 384.8 MB, free: 5.539 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006478/0.2659, allocations: 295.3 kB / 385 MB, free: 5.406 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003933/0.2663, allocations: 241.6 kB / 385.3 MB, free: 5.305 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002723/0.269, allocations: 2.799 MB / 388.1 MB, free: 2.938 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003894/0.2694, allocations: 204.7 kB / 388.3 MB, free: 2.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.863e-06/0.2694, allocations: 1.375 kB / 388.3 MB, free: 2.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.00134/0.2708, allocations: 0.6269 MB / 388.9 MB, free: 2.523 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.413e-05/0.2708, allocations: 65.08 kB / 389 MB, free: 2.453 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007557/0.2716, allocations: 0.8047 MB / 389.8 MB, free: 2.121 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.2716, allocations: 30.8 kB / 389.8 MB, free: 2.086 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002446/0.2718, allocations: 442.6 kB / 390.2 MB, free: 1.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.103e-05/0.2719, allocations: 103.8 kB / 390.3 MB, free: 1.652 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/0.272, allocations: 73.34 kB / 390.4 MB, free: 1.613 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.93e-05/0.2721, allocations: 324.2 kB / 390.7 MB, free: 1.297 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002862/0.2723, allocations: 127.3 kB / 390.8 MB, free: 1.254 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003079/0.2727, allocations: 215.3 kB / 391.1 MB, free: 1.094 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001449/0.2741, allocations: 0.7192 MB / 391.8 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.2741, allocations: 9.094 kB / 391.8 MB, free: 0.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008853/0.275, allocations: 0.5091 MB / 392.3 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.2751, allocations: 9.094 kB / 392.3 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.366e-05/0.2751, allocations: 38.75 kB / 392.3 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001117/0.2752, allocations: 33.47 kB / 392.4 MB, free: 0.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003507/0.2756, allocations: 88.52 kB / 392.5 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009394/0.2765, allocations: 1.448 MB / 393.9 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003/0.2769, allocations: 48.97 kB / 394 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.67e-05/0.2769, allocations: 18.97 kB / 394 MB, free: 15.02 MB / 318.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.0002647/0.2772, allocations: 195.9 kB / 394.2 MB, free: 14.85 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.2773, allocations: 109.6 kB / 394.3 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001099/0.2784, allocations: 499.7 kB / 394.8 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.2784, allocations: 3.25 kB / 394.8 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.2784, allocations: 1.094 kB / 394.8 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.2784, allocations: 4 kB / 394.8 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006237/0.2791, allocations: 0.5643 MB / 395.3 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.877e-05/0.2791, allocations: 31.5 kB / 395.4 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003334/0.2795, allocations: 64.62 kB / 395.4 MB, free: 14.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.49e-05/0.2795, allocations: 25.38 kB / 395.5 MB, free: 14.15 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.861e-05/0.2796, allocations: 10.06 kB / 395.5 MB, free: 14.15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009612/0.2806, allocations: 1.442 MB / 396.9 MB, free: 12.66 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.2806, allocations: 7.984 kB / 396.9 MB, free: 12.66 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00118/0.2818, allocations: 0.6042 MB / 397.5 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001886/0.282, allocations: 181.8 kB / 397.7 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.798e-05/0.2821, allocations: 10.75 kB / 397.7 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/0.2823, allocations: 22.78 kB / 397.7 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.28e-05/0.2824, allocations: 29.72 kB / 397.8 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.372e-05/0.2824, allocations: 8.25 kB / 397.8 MB, free: 12.11 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005799/0.283, allocations: 0.5483 MB / 398.3 MB, free: 11.78 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.283, allocations: 0 / 398.3 MB, free: 11.78 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006509/0.2837, allocations: 243.1 kB / 398.5 MB, free: 11.73 MB / 318.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.002099/0.2858, allocations: 1.404 MB / 400 MB, free: 10.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009884/0.2868, allocations: 496.3 kB / 400.4 MB, free: 10.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2868, allocations: 0 / 400.4 MB, free: 10.48 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004973/0.2873, allocations: 338.1 kB / 400.8 MB, free: 10.25 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006031/0.2879, allocations: 113.4 kB / 400.9 MB, free: 10.18 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008254/0.2962, allocations: 6.264 MB / 407.1 MB, free: 5.195 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004599/0.2967, allocations: 0.9602 MB / 408.1 MB, free: 4.207 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003219/0.297, allocations: 93.19 kB / 408.2 MB, free: 4.113 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003256/0.2973, allocations: 315.3 kB / 408.5 MB, free: 3.805 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2973, allocations: 0 / 408.5 MB, free: 3.805 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04332/0.3407, allocations: 17.2 MB / 425.7 MB, free: 2.727 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.295/9.636, allocations: 11.34 kB / 425.7 MB, free: 2.723 MB / 334.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)