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.001026/0.001026, allocations: 98.77 kB / 16.96 MB, free: 6.449 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.0008488/0.0008488, allocations: 181.8 kB / 17.84 MB, free: 6.008 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.652/1.652, allocations: 205.4 MB / 224 MB, free: 13.15 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.0006456/0.0006459, allocations: 16 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.121, allocations: 47.57 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.005358/0.1264, allocations: 4.348 MB / 332.8 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01212/0.1385, allocations: 9.508 MB / 342.3 MB, free: 6.082 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000801/0.1394, allocations: 11.94 kB / 342.3 MB, free: 6.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00168/0.1411, allocations: 0.5711 MB / 342.9 MB, free: 5.496 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002887/0.144, allocations: 0.7413 MB / 343.6 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00144/0.1454, allocations: 403 kB / 344 MB, free: 4.355 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002364/0.1478, allocations: 1.237 MB / 345.3 MB, free: 3.113 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003384/0.1482, allocations: 151.8 kB / 345.4 MB, free: 2.953 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004046/0.1486, allocations: 234.8 kB / 345.6 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003614/0.1489, allocations: 282.2 kB / 345.9 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.708e-05/0.149, allocations: 16 kB / 345.9 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001886/0.1509, allocations: 0.6283 MB / 346.6 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001368/0.1511, allocations: 87.38 kB / 346.6 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002373/0.1513, allocations: 189.2 kB / 346.8 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001162/0.1525, allocations: 0.8997 MB / 347.7 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.997e-06/0.1525, allocations: 0 / 347.7 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.396e-06/0.1525, allocations: 0 / 347.7 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.531e-05/0.1526, allocations: 0 / 347.7 MB, free: 0.6211 MB / 286.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.001949/0.1545, allocations: 1.203 MB / 348.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/0.1546, allocations: 12.03 kB / 348.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001155/0.1547, allocations: 62.53 kB / 349 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001507/0.1549, allocations: 122.5 kB / 349.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.1559, allocations: 0.704 MB / 349.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.156, allocations: 20.56 kB / 349.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.415e-05/0.1561, allocations: 24 kB / 349.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006885/0.1567, allocations: 329.3 kB / 350.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.1568, allocations: 3.938 kB / 350.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.57e-05/0.1568, allocations: 12 kB / 350.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/0.1568, allocations: 4 kB / 350.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006674/0.1575, allocations: 306.1 kB / 350.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002085/0.1596, allocations: 1.368 MB / 351.9 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006777/0.1603, allocations: 314.8 kB / 352.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004237/0.1607, allocations: 260.7 kB / 352.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004268/0.165, allocations: 3.604 MB / 356 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000426/0.1655, allocations: 204.3 kB / 356.2 MB, free: 7.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.144e-06/0.1655, allocations: 0 / 356.2 MB, free: 7.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001554/0.167, allocations: 0.7621 MB / 357 MB, free: 6.508 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.794e-05/0.1671, allocations: 59.41 kB / 357.1 MB, free: 6.438 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008767/0.168, allocations: 0.8075 MB / 357.9 MB, free: 5.613 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.168, allocations: 29.7 kB / 357.9 MB, free: 5.578 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003635/0.1684, allocations: 448.5 kB / 358.3 MB, free: 5.133 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.467e-05/0.1685, allocations: 98.64 kB / 358.4 MB, free: 5.035 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.642e-05/0.1685, allocations: 4 kB / 358.4 MB, free: 5.031 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.1687, allocations: 318 kB / 358.7 MB, free: 4.715 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002776/0.1689, allocations: 132.7 kB / 358.9 MB, free: 4.586 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003934/0.1693, allocations: 236 kB / 359.1 MB, free: 4.309 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003014/0.1696, allocations: 151.9 kB / 359.3 MB, free: 4.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.1697, allocations: 4 kB / 359.3 MB, free: 4.156 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009125/0.1706, allocations: 0.5367 MB / 359.8 MB, free: 3.605 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.1706, allocations: 8 kB / 359.8 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.899e-05/0.1707, allocations: 32 kB / 359.8 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002138/0.1709, allocations: 53.69 kB / 359.9 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002884/0.1712, allocations: 72.11 kB / 360 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002008/0.1732, allocations: 2.654 MB / 362.6 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002951/0.1735, allocations: 51.52 kB / 362.7 MB, free: 472 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.621e-05/0.1736, allocations: 23.95 kB / 362.7 MB, free: 448 kB / 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 ($PRE.VIN.counter,VIN.counter,$whenCondition1,$PRE.VIN.T0,VIN.T0,$PRE.VIN.counter2,VIN.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002779/0.1739, allocations: 209.7 kB / 362.9 MB, free: 228 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.174, allocations: 106.8 kB / 363 MB, free: 120 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001103/0.1751, allocations: 0.5128 MB / 363.5 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.1751, allocations: 4 kB / 363.5 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.1751, allocations: 3.938 kB / 363.5 MB, free: 15.58 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.1751, allocations: 0 / 363.5 MB, free: 15.58 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006447/0.1758, allocations: 0.5505 MB / 364.1 MB, free: 14.99 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.655e-05/0.1758, allocations: 32 kB / 364.1 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002278/0.1761, allocations: 55.91 kB / 364.1 MB, free: 14.9 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001343/0.1762, allocations: 45.69 kB / 364.2 MB, free: 14.85 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.864e-05/0.1763, allocations: 11.94 kB / 364.2 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002058/0.1783, allocations: 2.646 MB / 366.9 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.1783, allocations: 0 / 366.9 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.1795, allocations: 0.6271 MB / 367.5 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002087/0.1797, allocations: 179.7 kB / 367.7 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.664e-05/0.1798, allocations: 11.98 kB / 367.7 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002026/0.18, allocations: 19.98 kB / 367.7 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.818e-05/0.1801, allocations: 27.92 kB / 367.7 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.518e-05/0.1801, allocations: 11.98 kB / 367.7 MB, free: 11.01 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006657/0.1808, allocations: 0.5467 MB / 368.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1808, allocations: 3.938 kB / 368.3 MB, free: 10.45 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007114/0.1815, allocations: 239.7 kB / 368.5 MB, free: 10.22 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001946/0.1835, allocations: 1.403 MB / 369.9 MB, free: 8.777 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001059/0.1846, allocations: 0.613 MB / 370.5 MB, free: 8.133 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.1846, allocations: 0 / 370.5 MB, free: 8.133 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006674/0.1852, allocations: 446.9 kB / 371 MB, free: 7.664 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004532/0.1857, allocations: 100.4 kB / 371.1 MB, free: 7.562 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008928/0.1947, allocations: 4.844 MB / 375.9 MB, free: 2.465 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005911/0.1953, allocations: 0.9561 MB / 376.9 MB, free: 1.48 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003124/0.1956, allocations: 77.22 kB / 376.9 MB, free: 1.406 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004007/0.196, allocations: 335.3 kB / 377.3 MB, free: 1.078 MB / 318.1 MB Notification: Performance of SimCode: time 1.212e-06/0.196, allocations: 0 / 377.3 MB, free: 1.078 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2337/0.4297, allocations: 16.32 MB / 393.6 MB, free: 47.45 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001363/0.4299, allocations: 223.5 kB / 393.8 MB, free: 47.2 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.761/3.191, allocations: 0 / 393.8 MB, free: 47.2 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/linux/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) Environment - environmentSimulation: