Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001114/0.001114, allocations: 196.1 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.222/1.222, allocations: 226.5 MB / 244.7 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007448/0.0007448, allocations: 100.8 kB / 296.8 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002066/0.0002067, allocations: 11.94 kB / 356.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2331/0.2333, allocations: 51.29 MB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.003351/0.2367, allocations: 4.418 MB / 412.6 MB, free: 23.28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007929/0.2447, allocations: 9.851 MB / 422.4 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007498/0.2455, allocations: 7.938 kB / 422.4 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001635/0.2471, allocations: 0.5829 MB / 423 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002282/0.2494, allocations: 0.7648 MB / 423.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001109/0.2505, allocations: 407 kB / 424.2 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001692/0.2522, allocations: 1.277 MB / 425.4 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002315/0.2525, allocations: 161.8 kB / 425.6 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002464/0.2527, allocations: 250.7 kB / 425.8 MB, free: 9.953 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002129/0.253, allocations: 290.2 kB / 426.1 MB, free: 9.668 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.541e-05/0.253, allocations: 16 kB / 426.1 MB, free: 9.652 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001308/0.2543, allocations: 0.6907 MB / 426.8 MB, free: 8.961 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.947e-05/0.2544, allocations: 83.39 kB / 426.9 MB, free: 8.879 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002504/0.2547, allocations: 387.5 kB / 427.3 MB, free: 8.492 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006864/0.2554, allocations: 0.892 MB / 428.2 MB, free: 7.598 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.2554, allocations: 0 / 428.2 MB, free: 7.598 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2554, allocations: 0 / 428.2 MB, free: 7.598 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.689e-06/0.2554, allocations: 4 kB / 428.2 MB, free: 7.594 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.001516/0.2569, allocations: 1.195 MB / 429.4 MB, free: 6.348 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.655e-05/0.257, allocations: 8.031 kB / 429.4 MB, free: 6.34 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.828e-05/0.2571, allocations: 66.72 kB / 429.4 MB, free: 6.266 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.2572, allocations: 127.5 kB / 429.6 MB, free: 6.141 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007915/0.258, allocations: 0.747 MB / 430.3 MB, free: 5.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.407e-05/0.258, allocations: 20.55 kB / 430.3 MB, free: 5.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.931e-05/0.2581, allocations: 31.94 kB / 430.4 MB, free: 5.289 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006117/0.2587, allocations: 325.3 kB / 430.7 MB, free: 4.969 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.2587, allocations: 0 / 430.7 MB, free: 4.969 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.062e-05/0.2588, allocations: 16 kB / 430.7 MB, free: 4.953 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.2588, allocations: 8 kB / 430.7 MB, free: 4.945 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005985/0.2594, allocations: 294.2 kB / 431 MB, free: 4.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001581/0.261, allocations: 1.372 MB / 432.4 MB, free: 3.195 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005936/0.2616, allocations: 314.7 kB / 432.7 MB, free: 2.879 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003532/0.262, allocations: 260.6 kB / 432.9 MB, free: 2.621 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00263/0.2646, allocations: 2.801 MB / 435.7 MB, free: 15.44 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004397/0.2651, allocations: 208.3 kB / 435.9 MB, free: 15.22 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 2.043e-06/0.2651, allocations: 4 kB / 435.9 MB, free: 15.22 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.001469/0.2665, allocations: 0.6596 MB / 436.6 MB, free: 14.53 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.2666, allocations: 59.41 kB / 436.7 MB, free: 14.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008644/0.2675, allocations: 0.7915 MB / 437.5 MB, free: 13.65 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/0.2675, allocations: 33.7 kB / 437.5 MB, free: 13.61 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003533/0.2679, allocations: 440.6 kB / 437.9 MB, free: 13.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.068e-05/0.268, allocations: 110.4 kB / 438 MB, free: 13.07 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.973e-05/0.268, allocations: 8 kB / 438 MB, free: 13.06 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.2681, allocations: 325.9 kB / 438.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002929/0.2684, allocations: 128.7 kB / 438.5 MB, free: 12.61 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003548/0.2688, allocations: 230.5 kB / 438.7 MB, free: 12.34 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00158/0.2704, allocations: 0.7511 MB / 439.4 MB, free: 11.55 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2704, allocations: 0 / 439.4 MB, free: 11.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000933/0.2713, allocations: 0.5175 MB / 440 MB, free: 11.03 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.902e-05/0.2714, allocations: 8 kB / 440 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.131e-05/0.2714, allocations: 39.98 kB / 440 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001204/0.2715, allocations: 28.84 kB / 440 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003468/0.2719, allocations: 104 kB / 440.1 MB, free: 10.85 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009627/0.2729, allocations: 1.347 MB / 441.5 MB, free: 9.367 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002912/0.2732, allocations: 51.56 kB / 441.5 MB, free: 9.316 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.691e-05/0.2732, allocations: 20 kB / 441.6 MB, free: 9.297 MB / 314.7 MB Warning: Assuming fixed start value for the following 1 variables: Q1.vbx:VARIABLE(unit = "V" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (39): * Single equations (assignments): 37 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002887/0.2735, allocations: 205.4 kB / 441.8 MB, free: 9.09 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.988e-05/0.2736, allocations: 110.8 kB / 441.9 MB, free: 8.98 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001068/0.2747, allocations: 0.5079 MB / 442.4 MB, free: 8.465 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.351e-06/0.2747, allocations: 4 kB / 442.4 MB, free: 8.461 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-06/0.2747, allocations: 3.938 kB / 442.4 MB, free: 8.457 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.2747, allocations: 7.984 kB / 442.4 MB, free: 8.449 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005794/0.2753, allocations: 0.566 MB / 443 MB, free: 7.836 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.954e-05/0.2754, allocations: 36 kB / 443 MB, free: 7.801 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003212/0.2757, allocations: 55.95 kB / 443 MB, free: 7.746 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.587e-05/0.2758, allocations: 28.78 kB / 443.1 MB, free: 7.715 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.684e-05/0.2758, allocations: 11.98 kB / 443.1 MB, free: 7.703 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009465/0.2768, allocations: 1.335 MB / 444.4 MB, free: 6.234 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.2768, allocations: 0 / 444.4 MB, free: 6.234 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001158/0.278, allocations: 0.638 MB / 445.1 MB, free: 5.574 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002002/0.2782, allocations: 183.8 kB / 445.2 MB, free: 5.375 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.105e-05/0.2782, allocations: 7.938 kB / 445.2 MB, free: 5.367 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002339/0.2785, allocations: 27.97 kB / 445.3 MB, free: 5.34 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.2786, allocations: 27.97 kB / 445.3 MB, free: 5.312 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.834e-05/0.2786, allocations: 8 kB / 445.3 MB, free: 5.305 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00064/0.2793, allocations: 0.5425 MB / 445.9 MB, free: 4.754 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.2793, allocations: 0 / 445.9 MB, free: 4.754 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006744/0.28, allocations: 231.8 kB / 446.1 MB, free: 4.527 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Q1.vbe,Q1.vbc,Q1.vbx) * 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 (22): * Single equations (assignments): 17 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002053/0.282, allocations: 1.457 MB / 447.5 MB, free: 3.035 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001017/0.2831, allocations: 0.4973 MB / 448 MB, free: 2.52 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.2831, allocations: 0 / 448 MB, free: 2.52 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005062/0.2836, allocations: 337.1 kB / 448.4 MB, free: 2.172 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005929/0.2842, allocations: 109.2 kB / 448.5 MB, free: 2.062 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008924/0.2932, allocations: 5.061 MB / 453.5 MB, free: 12.75 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004491/0.2936, allocations: 0.9567 MB / 454.5 MB, free: 11.76 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000347/0.294, allocations: 319.3 kB / 454.8 MB, free: 11.45 MB / 330.7 MB Notification: Performance of SimCode: time 8.52e-07/0.294, allocations: 0 / 454.8 MB, free: 11.45 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.554/3.848, allocations: 16.66 MB / 471.5 MB, free: 10.76 MB / 346.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-08 Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)