Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_3_2_3_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.001463/0.001463, allocations: 98.52 kB / 17.58 MB, free: 5.418 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.001652/0.001652, allocations: 192.1 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.263/1.263, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001088/0.001088, allocations: 55.91 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07012/0.07121, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.00489/0.07613, allocations: 5.007 MB / 332.4 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008701/0.08485, allocations: 10.45 MB / 342.8 MB, free: 4.844 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002284/0.0851, allocations: 8 kB / 342.8 MB, free: 4.836 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001202/0.08631, allocations: 0.6672 MB / 343.5 MB, free: 4.164 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00153/0.08785, allocations: 0.9945 MB / 344.5 MB, free: 3.164 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009268/0.08878, allocations: 0.5959 MB / 345.1 MB, free: 2.566 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001473/0.09027, allocations: 1.338 MB / 346.4 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000231/0.09051, allocations: 181.1 kB / 346.6 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002155/0.09073, allocations: 270.6 kB / 346.9 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002742/0.09101, allocations: 314 kB / 347.2 MB, free: 472 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.239e-05/0.09107, allocations: 36 kB / 347.2 MB, free: 436 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001049/0.09213, allocations: 0.6753 MB / 347.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.745e-05/0.09222, allocations: 111.2 kB / 348 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00028/0.09251, allocations: 405.4 kB / 348.4 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001152/0.09367, allocations: 1.242 MB / 349.6 MB, free: 14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.09368, allocations: 0 / 349.6 MB, free: 14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.09369, allocations: 0 / 349.6 MB, free: 14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.0937, allocations: 4 kB / 349.7 MB, free: 13.99 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.001557/0.09526, allocations: 1.319 MB / 351 MB, free: 12.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.09531, allocations: 12.03 kB / 351 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.193e-05/0.09537, allocations: 74.66 kB / 351.1 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001179/0.0955, allocations: 111.6 kB / 351.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007817/0.09628, allocations: 0.7464 MB / 351.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.943e-05/0.09631, allocations: 24.5 kB / 351.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.669e-05/0.09638, allocations: 35.84 kB / 352 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000547/0.09693, allocations: 313.3 kB / 352.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.09695, allocations: 0 / 352.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.703e-05/0.09698, allocations: 16 kB / 352.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.097, allocations: 12 kB / 352.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005781/0.09758, allocations: 274.2 kB / 352.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001612/0.0992, allocations: 1.361 MB / 353.9 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006075/0.09982, allocations: 298.5 kB / 354.2 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003781/0.1002, allocations: 244.6 kB / 354.5 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003518/0.1037, allocations: 3.619 MB / 358.1 MB, free: 4.785 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003616/0.1041, allocations: 195.3 kB / 358.3 MB, free: 4.582 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.573e-06/0.1041, allocations: 0 / 358.3 MB, free: 4.582 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001415/0.1055, allocations: 0.7225 MB / 359 MB, free: 3.809 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.146e-05/0.1056, allocations: 59.34 kB / 359.1 MB, free: 3.738 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007437/0.1063, allocations: 0.8114 MB / 359.9 MB, free: 2.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.515e-05/0.1064, allocations: 37.7 kB / 359.9 MB, free: 2.867 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003044/0.1067, allocations: 444.5 kB / 360.3 MB, free: 2.426 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.65e-05/0.1068, allocations: 98.62 kB / 360.4 MB, free: 2.328 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.871e-05/0.1069, allocations: 73.94 kB / 360.5 MB, free: 2.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.074e-05/0.107, allocations: 322 kB / 360.8 MB, free: 1.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002608/0.1072, allocations: 120.6 kB / 360.9 MB, free: 1.812 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003233/0.1076, allocations: 220 kB / 361.1 MB, free: 1.551 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005726/0.1081, allocations: 360.9 kB / 361.5 MB, free: 1.152 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1081, allocations: 8 kB / 361.5 MB, free: 1.145 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000848/0.109, allocations: 0.5132 MB / 362 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.109, allocations: 8 kB / 362 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.32e-05/0.1091, allocations: 32 kB / 362.1 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001742/0.1092, allocations: 53.69 kB / 362.1 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002774/0.1095, allocations: 80.16 kB / 362.2 MB, free: 452 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001739/0.1113, allocations: 2.848 MB / 365 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002604/0.1116, allocations: 43.58 kB / 365.1 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.016e-05/0.1116, allocations: 20 kB / 365.1 MB, free: 13.25 MB / 318.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.0002078/0.1118, allocations: 209.6 kB / 365.3 MB, free: 13.03 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.872e-05/0.1119, allocations: 102.8 kB / 365.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001007/0.1129, allocations: 0.4902 MB / 365.9 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.1129, allocations: 4 kB / 365.9 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.1129, allocations: 0 / 365.9 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.113, allocations: 3.984 kB / 365.9 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004845/0.1134, allocations: 0.5621 MB / 366.5 MB, free: 11.81 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.808e-05/0.1135, allocations: 28 kB / 366.5 MB, free: 11.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002301/0.1137, allocations: 43.95 kB / 366.5 MB, free: 11.74 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001307/0.1139, allocations: 49.69 kB / 366.6 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.374e-05/0.1139, allocations: 15.94 kB / 366.6 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001647/0.1156, allocations: 2.844 MB / 369.4 MB, free: 8.547 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.1156, allocations: 0 / 369.4 MB, free: 8.547 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001062/0.1166, allocations: 0.6112 MB / 370.1 MB, free: 7.91 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001573/0.1168, allocations: 179.8 kB / 370.2 MB, free: 7.715 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.52e-05/0.1169, allocations: 11.98 kB / 370.2 MB, free: 7.703 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002091/0.1171, allocations: 7.984 kB / 370.3 MB, free: 7.695 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.947e-05/0.1172, allocations: 31.97 kB / 370.3 MB, free: 7.664 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-05/0.1172, allocations: 11.94 kB / 370.3 MB, free: 7.652 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005264/0.1177, allocations: 0.5546 MB / 370.8 MB, free: 7.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1178, allocations: 0 / 370.8 MB, free: 7.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004762/0.1182, allocations: 243.6 kB / 371.1 MB, free: 6.852 MB / 318.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.001655/0.1199, allocations: 1.387 MB / 372.5 MB, free: 5.43 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009331/0.1208, allocations: 0.5927 MB / 373.1 MB, free: 4.805 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1209, allocations: 0 / 373.1 MB, free: 4.805 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005441/0.1214, allocations: 443.8 kB / 373.5 MB, free: 4.34 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003872/0.1218, allocations: 100.2 kB / 373.6 MB, free: 4.238 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09701/0.2188, allocations: 6.134 MB / 379.7 MB, free: 52.46 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.2192, allocations: 0.956 MB / 380.7 MB, free: 51.77 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002567/0.2195, allocations: 81.7 kB / 380.8 MB, free: 51.76 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002326/0.2197, allocations: 331.1 kB / 381.1 MB, free: 51.75 MB / 318.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2197, allocations: 2.562 kB / 381.1 MB, free: 51.75 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.322/2.542, allocations: 17.25 MB / 398.3 MB, free: 44 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/13.3, allocations: 8.578 kB / 398.4 MB, free: 44 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)