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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 114.6 kB / 17.07 MB, free: 6.016 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.001588/0.001588, allocations: 191 kB / 18 MB, free: 5.098 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.384/1.384, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001077/0.001077, allocations: 43.92 kB / 350.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2651, allocations: 49.45 MB / 400.2 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.005462/0.2706, allocations: 5.064 MB / 405.3 MB, free: 3.754 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01103/0.2817, allocations: 10.78 MB / 416.1 MB, free: 8.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001025/0.2828, allocations: 31.75 kB / 416.1 MB, free: 8.898 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001977/0.2848, allocations: 0.6934 MB / 416.8 MB, free: 8.203 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003126/0.2879, allocations: 1.014 MB / 417.8 MB, free: 7.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00156/0.2895, allocations: 0.5959 MB / 418.4 MB, free: 6.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002064/0.2916, allocations: 1.373 MB / 419.8 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00032/0.2919, allocations: 181.2 kB / 420 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000371/0.2923, allocations: 286.5 kB / 420.2 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003636/0.2927, allocations: 321.9 kB / 420.6 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.538e-05/0.2927, allocations: 35.94 kB / 420.6 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001474/0.2942, allocations: 0.7376 MB / 421.3 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.2943, allocations: 111.3 kB / 421.4 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003458/0.2947, allocations: 405.4 kB / 421.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001539/0.2962, allocations: 1.28 MB / 423.1 MB, free: 1.852 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2963, allocations: 0 / 423.1 MB, free: 1.852 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.2963, allocations: 0 / 423.1 MB, free: 1.852 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.583e-05/0.2963, allocations: 0 / 423.1 MB, free: 1.852 MB / 334.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.001958/0.2983, allocations: 1.357 MB / 424.5 MB, free: 448 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.2983, allocations: 8.031 kB / 424.5 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.297e-05/0.2984, allocations: 62.72 kB / 424.5 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001421/0.2986, allocations: 128.2 kB / 424.7 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001037/0.2996, allocations: 0.7557 MB / 425.4 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.371e-05/0.2996, allocations: 24.56 kB / 425.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.957e-05/0.2997, allocations: 24 kB / 425.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005997/0.3003, allocations: 317.3 kB / 425.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.3003, allocations: 3.938 kB / 425.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.222e-05/0.3004, allocations: 12 kB / 425.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.3004, allocations: 15.98 kB / 425.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006357/0.301, allocations: 274.2 kB / 426.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001839/0.3029, allocations: 1.361 MB / 427.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006765/0.3036, allocations: 302.5 kB / 427.7 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004052/0.304, allocations: 244.6 kB / 428 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003917/0.3079, allocations: 3.588 MB / 431.6 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003988/0.3083, allocations: 200.7 kB / 431.8 MB, free: 8.422 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.854e-06/0.3083, allocations: 0 / 431.8 MB, free: 8.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001528/0.3099, allocations: 0.7271 MB / 432.5 MB, free: 7.645 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.3099, allocations: 51.41 kB / 432.5 MB, free: 7.582 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00083/0.3108, allocations: 0.8231 MB / 433.4 MB, free: 6.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.708e-05/0.3108, allocations: 33.7 kB / 433.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003348/0.3111, allocations: 452.8 kB / 433.8 MB, free: 6.258 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.009e-05/0.3112, allocations: 107.1 kB / 433.9 MB, free: 6.152 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/0.3113, allocations: 70.03 kB / 434 MB, free: 6.078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.3114, allocations: 321.9 kB / 434.3 MB, free: 5.758 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002788/0.3117, allocations: 116.7 kB / 434.4 MB, free: 5.645 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003425/0.3121, allocations: 236 kB / 434.7 MB, free: 5.367 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006494/0.3127, allocations: 357.3 kB / 435 MB, free: 4.973 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.3127, allocations: 0 / 435 MB, free: 4.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009272/0.3137, allocations: 0.5334 MB / 435.5 MB, free: 4.426 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.3137, allocations: 11.94 kB / 435.6 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.313e-05/0.3138, allocations: 35.98 kB / 435.6 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002248/0.314, allocations: 57.67 kB / 435.6 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003001/0.3143, allocations: 67.89 kB / 435.7 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001894/0.3162, allocations: 2.852 MB / 438.6 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003114/0.3165, allocations: 51.64 kB / 438.6 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.896e-05/0.3166, allocations: 24.06 kB / 438.6 MB, free: 1.039 MB / 350.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.0002743/0.3169, allocations: 197.7 kB / 438.8 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.317, allocations: 111.3 kB / 438.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001006/0.318, allocations: 485.8 kB / 439.4 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.318, allocations: 0 / 439.4 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.318, allocations: 7.938 kB / 439.4 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.318, allocations: 4.031 kB / 439.4 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005508/0.3186, allocations: 0.5661 MB / 440 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.274e-05/0.3187, allocations: 35.92 kB / 440 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002451/0.3189, allocations: 35.97 kB / 440.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001423/0.3191, allocations: 49.69 kB / 440.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.491e-05/0.3191, allocations: 7.984 kB / 440.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001791/0.3209, allocations: 2.852 MB / 443 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3209, allocations: 0 / 443 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001141/0.3221, allocations: 0.5963 MB / 443.6 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002243/0.3223, allocations: 196.3 kB / 443.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.816e-05/0.3224, allocations: 0 / 443.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000239/0.3226, allocations: 20.05 kB / 443.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.754e-05/0.3227, allocations: 23.97 kB / 443.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.52e-05/0.3227, allocations: 19.98 kB / 443.8 MB, free: 11.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005966/0.3233, allocations: 0.5428 MB / 444.4 MB, free: 10.9 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3234, allocations: 0 / 444.4 MB, free: 10.9 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000627/0.324, allocations: 243.4 kB / 444.6 MB, free: 10.66 MB / 366.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.001862/0.3259, allocations: 1.418 MB / 446 MB, free: 9.207 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00106/0.3269, allocations: 0.6036 MB / 446.6 MB, free: 8.574 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3269, allocations: 0 / 446.6 MB, free: 8.574 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005749/0.3275, allocations: 438.9 kB / 447.1 MB, free: 8.113 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005591/0.3281, allocations: 116.3 kB / 447.2 MB, free: 8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007431/0.3355, allocations: 5.812 MB / 453 MB, free: 1.965 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004442/0.336, allocations: 0.9561 MB / 453.9 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002334/0.3362, allocations: 77.22 kB / 454 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003304/0.3366, allocations: 335.3 kB / 454.3 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3366, allocations: 0 / 454.3 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04093/0.3775, allocations: 17.48 MB / 471.8 MB, free: 15.29 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.86, allocations: 13.97 kB / 471.8 MB, free: 15.28 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)