Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009168/0.0009168, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.2/1.2, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006593/0.0006593, allocations: 89.41 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002953/0.0002955, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2026/0.2029, allocations: 47.58 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.00361/0.2066, allocations: 4.354 MB / 379.5 MB, free: 41.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008598/0.2152, allocations: 9.506 MB / 389 MB, free: 34.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008003/0.216, allocations: 10.53 kB / 389.1 MB, free: 34.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001631/0.2177, allocations: 0.5665 MB / 389.6 MB, free: 33.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003222/0.2209, allocations: 0.7428 MB / 390.4 MB, free: 33.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001306/0.2222, allocations: 409.2 kB / 390.8 MB, free: 32.97 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001711/0.224, allocations: 1.233 MB / 392 MB, free: 31.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002284/0.2242, allocations: 169.8 kB / 392.2 MB, free: 31.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001976/0.2244, allocations: 226.8 kB / 392.4 MB, free: 31.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001983/0.2246, allocations: 290.2 kB / 392.7 MB, free: 31.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.508e-05/0.2247, allocations: 20 kB / 392.7 MB, free: 31.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001099/0.2258, allocations: 0.6245 MB / 393.3 MB, free: 30.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.329e-05/0.2258, allocations: 95.36 kB / 393.4 MB, free: 30.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002418/0.2261, allocations: 387.5 kB / 393.8 MB, free: 30.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006391/0.2267, allocations: 0.8881 MB / 394.7 MB, free: 29.13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.2267, allocations: 0 / 394.7 MB, free: 29.13 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.2268, allocations: 0 / 394.7 MB, free: 29.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.136e-06/0.2268, allocations: 0 / 394.7 MB, free: 29.13 MB / 298.7 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.001404/0.2282, allocations: 1.199 MB / 395.9 MB, free: 27.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.2282, allocations: 15.97 kB / 395.9 MB, free: 27.86 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.294e-05/0.2283, allocations: 62.72 kB / 396 MB, free: 27.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.443e-05/0.2284, allocations: 115.5 kB / 396.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000689/0.2291, allocations: 0.7503 MB / 396.8 MB, free: 26.88 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.2291, allocations: 20.56 kB / 396.8 MB, free: 26.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.576e-05/0.2292, allocations: 24 kB / 396.9 MB, free: 26.83 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000538/0.2297, allocations: 333.3 kB / 397.2 MB, free: 26.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.2297, allocations: 0 / 397.2 MB, free: 26.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.89e-05/0.2298, allocations: 12 kB / 397.2 MB, free: 26.49 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.2298, allocations: 4 kB / 397.2 MB, free: 26.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005502/0.2304, allocations: 302.2 kB / 397.5 MB, free: 26.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.2318, allocations: 1.368 MB / 398.9 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006041/0.2324, allocations: 322.4 kB / 399.2 MB, free: 24.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003473/0.2328, allocations: 253.4 kB / 399.4 MB, free: 24.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003039/0.2359, allocations: 3.6 MB / 403 MB, free: 20.01 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003629/0.2362, allocations: 203.8 kB / 403.2 MB, free: 19.8 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 2.174e-06/0.2362, allocations: 0 / 403.2 MB, free: 19.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001344/0.2376, allocations: 0.766 MB / 404 MB, free: 18.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.686e-05/0.2376, allocations: 59.34 kB / 404 MB, free: 18.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006261/0.2383, allocations: 0.8075 MB / 404.9 MB, free: 18.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.2383, allocations: 25.7 kB / 404.9 MB, free: 18.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000236/0.2385, allocations: 452.5 kB / 405.3 MB, free: 17.61 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.416e-05/0.2386, allocations: 98.56 kB / 405.4 MB, free: 17.51 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.674e-05/0.2386, allocations: 4 kB / 405.4 MB, free: 17.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.8e-05/0.2387, allocations: 326 kB / 405.7 MB, free: 17.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002503/0.2389, allocations: 128.6 kB / 405.9 MB, free: 17.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002993/0.2392, allocations: 236 kB / 406.1 MB, free: 16.78 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005289/0.2398, allocations: 380.9 kB / 406.5 MB, free: 16.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.2398, allocations: 0 / 406.5 MB, free: 16.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000789/0.2406, allocations: 0.5413 MB / 407 MB, free: 15.8 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.2406, allocations: 8 kB / 407 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.864e-05/0.2407, allocations: 35.98 kB / 407.1 MB, free: 15.76 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001806/0.2408, allocations: 58.09 kB / 407.1 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002724/0.2411, allocations: 75.89 kB / 407.2 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001189/0.2423, allocations: 2.658 MB / 409.8 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002859/0.2426, allocations: 47.58 kB / 409.9 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.85e-05/0.2427, allocations: 20 kB / 409.9 MB, free: 12.63 MB / 298.7 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.0001929/0.2429, allocations: 197.8 kB / 410.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.808e-05/0.2429, allocations: 110.8 kB / 410.2 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000958/0.2439, allocations: 0.5049 MB / 410.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.2439, allocations: 3.938 kB / 410.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.2439, allocations: 8 kB / 410.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.244, allocations: 0 / 410.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004061/0.2444, allocations: 0.5467 MB / 411.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-05/0.2444, allocations: 39.92 kB / 411.3 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002284/0.2446, allocations: 39.97 kB / 411.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000116/0.2448, allocations: 53.61 kB / 411.4 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.263e-05/0.2448, allocations: 16 kB / 411.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001072/0.2459, allocations: 2.638 MB / 414.1 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2459, allocations: 4.031 kB / 414.1 MB, free: 8.137 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009659/0.2469, allocations: 0.6342 MB / 414.7 MB, free: 7.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000155/0.247, allocations: 183.9 kB / 414.9 MB, free: 7.281 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.657e-05/0.2471, allocations: 4 kB / 414.9 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002192/0.2473, allocations: 32.02 kB / 414.9 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.714e-05/0.2474, allocations: 27.97 kB / 414.9 MB, free: 7.219 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.198e-05/0.2475, allocations: 8 kB / 414.9 MB, free: 7.211 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004359/0.2479, allocations: 0.5389 MB / 415.5 MB, free: 6.664 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2479, allocations: 0 / 415.5 MB, free: 6.664 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005108/0.2484, allocations: 243.7 kB / 415.7 MB, free: 6.426 MB / 298.7 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.001487/0.2499, allocations: 1.438 MB / 417.2 MB, free: 4.949 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008024/0.2507, allocations: 0.6013 MB / 417.8 MB, free: 4.316 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.2507, allocations: 3.938 kB / 417.8 MB, free: 4.312 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004485/0.2512, allocations: 443.1 kB / 418.2 MB, free: 3.848 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004035/0.2516, allocations: 100.3 kB / 418.3 MB, free: 3.746 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006805/0.2584, allocations: 4.878 MB / 423.2 MB, free: 14.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004421/0.2589, allocations: 0.9522 MB / 424.1 MB, free: 13.63 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003499/0.2592, allocations: 335.3 kB / 424.5 MB, free: 13.3 MB / 314.7 MB Notification: Performance of SimCode: time 3.71e-07/0.2593, allocations: 0 / 424.5 MB, free: 13.3 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.026/4.285, allocations: 20.22 MB / 444.7 MB, free: 9.047 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-08 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)