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.001458/0.001458, allocations: 107.2 kB / 16.92 MB, free: 5.77 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.001887/0.001887, allocations: 191.5 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.18/2.18, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001718/0.001719, allocations: 44 kB / 300.7 MB, free: 5.816 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1517/0.1535, allocations: 49.44 MB / 350.2 MB, free: 4.359 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.009498/0.1631, allocations: 5.058 MB / 355.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01874/0.1818, allocations: 10.79 MB / 366 MB, free: 4.438 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009445/0.1828, allocations: 7.938 kB / 366 MB, free: 4.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002699/0.1856, allocations: 0.6985 MB / 366.7 MB, free: 3.727 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005458/0.1911, allocations: 0.9985 MB / 367.7 MB, free: 2.719 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002909/0.194, allocations: 0.5998 MB / 368.3 MB, free: 2.121 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00324/0.1973, allocations: 1.365 MB / 369.7 MB, free: 0.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004523/0.1977, allocations: 193 kB / 369.9 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00046/0.1982, allocations: 274.6 kB / 370.1 MB, free: 284 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2213/0.4195, allocations: 310.1 kB / 370.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002896/0.4199, allocations: 33.66 kB / 370.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003321/0.4232, allocations: 0.7428 MB / 371.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001643/0.4234, allocations: 113.6 kB / 371.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007472/0.4241, allocations: 403.4 kB / 371.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003157/0.4273, allocations: 1.249 MB / 373 MB, free: 11.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.4273, allocations: 0 / 373 MB, free: 11.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.606e-06/0.4274, allocations: 1.281 kB / 373 MB, free: 11.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.162e-05/0.4274, allocations: 0 / 373 MB, free: 11.36 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.003062/0.4305, allocations: 1.324 MB / 374.3 MB, free: 10.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.207e-05/0.4305, allocations: 13.38 kB / 374.3 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.833e-05/0.4306, allocations: 65.52 kB / 374.4 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002091/0.4309, allocations: 113.8 kB / 374.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001384/0.4323, allocations: 0.7415 MB / 375.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.33e-05/0.4323, allocations: 20.67 kB / 375.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.493e-05/0.4324, allocations: 32.28 kB / 375.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009354/0.4334, allocations: 317.9 kB / 375.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.4334, allocations: 0 / 375.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.039e-05/0.4335, allocations: 10.03 kB / 375.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.262e-05/0.4335, allocations: 15.53 kB / 375.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001065/0.4346, allocations: 273.3 kB / 375.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002921/0.4375, allocations: 1.376 MB / 377.3 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009756/0.4385, allocations: 287.4 kB / 377.5 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006631/0.4392, allocations: 248.4 kB / 377.8 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006075/0.4453, allocations: 3.594 MB / 381.4 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006387/0.4459, allocations: 194.6 kB / 381.6 MB, free: 6.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 3.186e-06/0.446, allocations: 0 / 381.6 MB, free: 6.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002482/0.4485, allocations: 0.733 MB / 382.3 MB, free: 6.105 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.257e-05/0.4485, allocations: 55.78 kB / 382.3 MB, free: 6.043 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001617/0.4501, allocations: 0.8119 MB / 383.2 MB, free: 5.867 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.837e-05/0.4502, allocations: 32.52 kB / 383.2 MB, free: 5.832 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004545/0.4507, allocations: 452.3 kB / 383.6 MB, free: 5.469 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.848e-05/0.4508, allocations: 93.69 kB / 383.7 MB, free: 5.398 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.4509, allocations: 75.17 kB / 383.8 MB, free: 5.355 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.644e-05/0.451, allocations: 329.2 kB / 384.1 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000452/0.4515, allocations: 115.6 kB / 384.2 MB, free: 5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000522/0.452, allocations: 226.9 kB / 384.5 MB, free: 4.832 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009812/0.453, allocations: 362.4 kB / 384.8 MB, free: 4.602 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.453, allocations: 1.75 kB / 384.8 MB, free: 4.602 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00159/0.4546, allocations: 0.5119 MB / 385.3 MB, free: 4.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.4547, allocations: 6.062 kB / 385.3 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.553e-05/0.4548, allocations: 37.88 kB / 385.4 MB, free: 4.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003234/0.4551, allocations: 57.81 kB / 385.4 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005199/0.4556, allocations: 73.3 kB / 385.5 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001981/0.4576, allocations: 2.852 MB / 388.3 MB, free: 1.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005816/0.4582, allocations: 42.19 kB / 388.4 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.451e-05/0.4583, allocations: 19.47 kB / 388.4 MB, free: 1.477 MB / 302.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.0003891/0.4587, allocations: 205.9 kB / 388.6 MB, free: 1.312 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001826/0.4589, allocations: 111.2 kB / 388.7 MB, free: 1.254 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001748/0.4607, allocations: 494.3 kB / 389.2 MB, free: 1.039 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.4607, allocations: 2.094 kB / 389.2 MB, free: 1.039 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.4607, allocations: 1.125 kB / 389.2 MB, free: 1.039 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.4607, allocations: 0.9062 kB / 389.2 MB, free: 1.039 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009946/0.4617, allocations: 0.5541 MB / 389.8 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.575e-05/0.4618, allocations: 33.72 kB / 389.8 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004103/0.4622, allocations: 49.72 kB / 389.8 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002236/0.4625, allocations: 51.53 kB / 389.9 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.376e-05/0.4625, allocations: 12.38 kB / 389.9 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002715/0.4653, allocations: 2.838 MB / 392.7 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.4653, allocations: 0.75 kB / 392.7 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002026/0.4673, allocations: 0.6097 MB / 393.3 MB, free: 13.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003923/0.4677, allocations: 183 kB / 393.5 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/0.4679, allocations: 15.86 kB / 393.5 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003534/0.4682, allocations: 10.47 kB / 393.6 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.4684, allocations: 31.8 kB / 393.6 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.906e-05/0.4684, allocations: 12.83 kB / 393.6 MB, free: 13.34 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001159/0.4696, allocations: 0.5502 MB / 394.1 MB, free: 13.1 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4696, allocations: 3.188 kB / 394.1 MB, free: 13.1 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001243/0.4709, allocations: 242.3 kB / 394.4 MB, free: 13.05 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.003046/0.4739, allocations: 1.4 MB / 395.8 MB, free: 12.18 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001609/0.4756, allocations: 0.5916 MB / 396.4 MB, free: 11.82 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.4756, allocations: 0 / 396.4 MB, free: 11.82 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008813/0.4765, allocations: 439.2 kB / 396.8 MB, free: 11.51 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.4775, allocations: 118 kB / 396.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01283/0.4904, allocations: 6.144 MB / 403.1 MB, free: 7.898 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006506/0.4911, allocations: 0.9565 MB / 404 MB, free: 7.188 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005286/0.4916, allocations: 81.59 kB / 404.1 MB, free: 7.168 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005353/0.4922, allocations: 333.5 kB / 404.4 MB, free: 6.898 MB / 318.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4922, allocations: 0 / 404.4 MB, free: 6.898 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2137/0.7059, allocations: 17.27 MB / 421.7 MB, free: 7.172 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.17/17.88, allocations: 11.98 kB / 421.7 MB, free: 7.16 MB / 334.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)