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.001225/0.001225, allocations: 112.4 kB / 17.28 MB, free: 6.199 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.001078/0.001077, allocations: 189.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.049/2.049, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001446/0.001446, allocations: 52.14 kB / 280.3 MB, free: 3.391 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1574/0.1589, allocations: 46.62 MB / 326.9 MB, free: 4.695 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.007696/0.1666, allocations: 5.022 MB / 331.9 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01368/0.1803, allocations: 10.33 MB / 342.2 MB, free: 5.273 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005377/0.1809, allocations: 7.938 kB / 342.2 MB, free: 5.266 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001967/0.1829, allocations: 0.6212 MB / 342.9 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002578/0.1855, allocations: 0.8326 MB / 343.7 MB, free: 3.805 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001391/0.1869, allocations: 0.5264 MB / 344.2 MB, free: 3.277 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001896/0.1888, allocations: 1.342 MB / 345.6 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002873/0.1891, allocations: 177.1 kB / 345.7 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003764/0.1895, allocations: 274.5 kB / 346 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003398/0.1898, allocations: 314 kB / 346.3 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.129e-05/0.1899, allocations: 36 kB / 346.3 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001207/0.1911, allocations: 0.6791 MB / 347 MB, free: 464 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.1912, allocations: 107.3 kB / 347.1 MB, free: 356 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003976/0.1916, allocations: 405.5 kB / 347.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001565/0.1932, allocations: 1.25 MB / 348.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1932, allocations: 3.938 kB / 348.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1932, allocations: 0 / 348.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.148e-05/0.1933, allocations: 0 / 348.8 MB, free: 14.69 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.002414/0.1957, allocations: 1.323 MB / 350.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.272e-05/0.1958, allocations: 15.95 kB / 350.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.561e-05/0.1959, allocations: 66.73 kB / 350.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001746/0.196, allocations: 115.6 kB / 350.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001144/0.1972, allocations: 0.7425 MB / 351 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.199e-05/0.1972, allocations: 20.55 kB / 351 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.376e-05/0.1973, allocations: 31.91 kB / 351.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007215/0.1981, allocations: 313.3 kB / 351.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.1981, allocations: 0 / 351.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.971e-05/0.1981, allocations: 16 kB / 351.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/0.1981, allocations: 8 kB / 351.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006953/0.1988, allocations: 278.2 kB / 351.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002212/0.2011, allocations: 1.353 MB / 353 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007732/0.2019, allocations: 310.4 kB / 353.3 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000458/0.2023, allocations: 240.6 kB / 353.6 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004825/0.2072, allocations: 3.611 MB / 357.2 MB, free: 5.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004772/0.2077, allocations: 199.2 kB / 357.4 MB, free: 5.293 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.074e-06/0.2077, allocations: 0 / 357.4 MB, free: 5.293 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001809/0.2095, allocations: 0.7271 MB / 358.1 MB, free: 4.516 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.952e-05/0.2096, allocations: 63.34 kB / 358.2 MB, free: 4.441 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001146/0.2107, allocations: 0.8114 MB / 359 MB, free: 3.613 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.935e-05/0.2108, allocations: 37.7 kB / 359 MB, free: 3.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005398/0.2113, allocations: 444.5 kB / 359.4 MB, free: 3.129 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.2114, allocations: 94.66 kB / 359.5 MB, free: 3.035 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.2116, allocations: 77.92 kB / 359.6 MB, free: 2.953 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002153/0.2118, allocations: 318 kB / 359.9 MB, free: 2.637 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003039/0.2121, allocations: 116.6 kB / 360 MB, free: 2.523 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004388/0.2126, allocations: 224.1 kB / 360.3 MB, free: 2.258 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007694/0.2134, allocations: 360.9 kB / 360.6 MB, free: 1.859 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.788e-06/0.2134, allocations: 4 kB / 360.6 MB, free: 1.855 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001257/0.2147, allocations: 0.5172 MB / 361.1 MB, free: 1.324 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.32e-05/0.2147, allocations: 8 kB / 361.1 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.827e-05/0.2148, allocations: 32 kB / 361.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003041/0.2151, allocations: 53.69 kB / 361.2 MB, free: 1.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002922/0.2154, allocations: 76.08 kB / 361.3 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00303/0.2184, allocations: 2.851 MB / 364.2 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002825/0.2187, allocations: 43.58 kB / 364.2 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.983e-05/0.2188, allocations: 20 kB / 364.2 MB, free: 13.95 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.0002872/0.2191, allocations: 197.7 kB / 364.4 MB, free: 13.75 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.2192, allocations: 106.8 kB / 364.5 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001176/0.2204, allocations: 0.4973 MB / 365 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.2204, allocations: 4 kB / 365 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.2204, allocations: 0 / 365 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.2204, allocations: 0 / 365 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008224/0.2212, allocations: 0.566 MB / 365.6 MB, free: 12.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.352e-05/0.2213, allocations: 28 kB / 365.6 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002434/0.2215, allocations: 43.89 kB / 365.6 MB, free: 12.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002587/0.2218, allocations: 53.62 kB / 365.7 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.071e-05/0.2218, allocations: 12 kB / 365.7 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003043/0.2249, allocations: 2.84 MB / 368.6 MB, free: 9.258 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.2249, allocations: 0 / 368.6 MB, free: 9.258 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001415/0.2263, allocations: 0.6072 MB / 369.2 MB, free: 8.625 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002513/0.2266, allocations: 183.8 kB / 369.3 MB, free: 8.426 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.328e-05/0.2267, allocations: 0 / 369.3 MB, free: 8.426 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000229/0.2269, allocations: 19.97 kB / 369.4 MB, free: 8.406 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001463/0.2271, allocations: 31.97 kB / 369.4 MB, free: 8.375 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.144e-05/0.2271, allocations: 12 kB / 369.4 MB, free: 8.363 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008318/0.2279, allocations: 0.5507 MB / 370 MB, free: 7.805 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.228, allocations: 3.938 kB / 370 MB, free: 7.801 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008781/0.2288, allocations: 243.6 kB / 370.2 MB, free: 7.562 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.002755/0.2316, allocations: 1.387 MB / 371.6 MB, free: 6.137 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00145/0.2331, allocations: 0.6004 MB / 372.2 MB, free: 5.504 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.2331, allocations: 0 / 372.2 MB, free: 5.504 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007736/0.2339, allocations: 439.8 kB / 372.6 MB, free: 5.043 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005499/0.2344, allocations: 92.33 kB / 372.7 MB, free: 4.949 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2414/0.4759, allocations: 6.344 MB / 379 MB, free: 53.16 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006377/0.4766, allocations: 0.961 MB / 380 MB, free: 52.46 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004314/0.477, allocations: 84.36 kB / 380.1 MB, free: 52.45 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004259/0.4774, allocations: 332.2 kB / 380.4 MB, free: 52.44 MB / 318.1 MB Notification: Performance of SimCode: time 1.593e-06/0.4774, allocations: 0 / 380.4 MB, free: 52.44 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6292/1.107, allocations: 17.1 MB / 397.5 MB, free: 44.98 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002351/1.107, allocations: 241 kB / 397.7 MB, free: 44.72 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.819/3.925, allocations: 0 / 397.7 MB, free: 44.72 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-08 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)