Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00175/0.00175, allocations: 117.7 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00241/0.00241, allocations: 203.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 67.83 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.266, allocations: 50.54 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.006043/0.2721, allocations: 5.08 MB / 413.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01335/0.2855, allocations: 10.8 MB / 424.6 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009358/0.2865, allocations: 27.81 kB / 424.7 MB, free: 1.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002178/0.2888, allocations: 0.6959 MB / 425.4 MB, free: 0.832 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00439/0.2932, allocations: 1.002 MB / 426.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002287/0.2955, allocations: 0.6076 MB / 427 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002819/0.2984, allocations: 1.385 MB / 428.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003557/0.2988, allocations: 177.2 kB / 428.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004252/0.2992, allocations: 294.5 kB / 428.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003653/0.2996, allocations: 314 kB / 429.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.218e-05/0.2996, allocations: 32 kB / 429.1 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001711/0.3014, allocations: 0.7453 MB / 429.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001224/0.3015, allocations: 115.2 kB / 430 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000405/0.3019, allocations: 401.4 kB / 430.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001873/0.3038, allocations: 1.273 MB / 431.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.3038, allocations: 8 kB / 431.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3038, allocations: 0 / 431.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.109e-05/0.3039, allocations: 0 / 431.7 MB, free: 10.47 MB / 350.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.002168/0.306, allocations: 1.315 MB / 433 MB, free: 9.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.3061, allocations: 12.03 kB / 433 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.92e-05/0.3062, allocations: 62.72 kB / 433.1 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001524/0.3063, allocations: 111.6 kB / 433.2 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001163/0.3075, allocations: 0.7508 MB / 433.9 MB, free: 8.102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.3076, allocations: 20.56 kB / 433.9 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.548e-05/0.3076, allocations: 32 kB / 434 MB, free: 8.051 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006751/0.3083, allocations: 313.3 kB / 434.3 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.3083, allocations: 4 kB / 434.3 MB, free: 7.738 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.895e-05/0.3084, allocations: 8 kB / 434.3 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.752e-05/0.3084, allocations: 11.98 kB / 434.3 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006183/0.309, allocations: 278.1 kB / 434.6 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002086/0.3111, allocations: 1.361 MB / 435.9 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000696/0.3118, allocations: 302.5 kB / 436.2 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004119/0.3123, allocations: 244.7 kB / 436.5 MB, free: 5.445 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003793/0.3161, allocations: 2.798 MB / 439.3 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004712/0.3166, allocations: 211.2 kB / 439.5 MB, free: 2.051 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 3.276e-06/0.3166, allocations: 0 / 439.5 MB, free: 2.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.001588/0.3182, allocations: 0.6309 MB / 440.1 MB, free: 1.391 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.089e-05/0.3183, allocations: 59.34 kB / 440.2 MB, free: 1.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001094/0.3194, allocations: 0.815 MB / 441 MB, free: 500 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.428e-05/0.3194, allocations: 33.69 kB / 441 MB, free: 460 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003597/0.3198, allocations: 444.5 kB / 441.5 MB, free: 12 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.3199, allocations: 98.56 kB / 441.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.3201, allocations: 77.92 kB / 441.6 MB, free: 15.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.3202, allocations: 329.8 kB / 441.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003105/0.3205, allocations: 116.7 kB / 442.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003598/0.3209, allocations: 218.5 kB / 442.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00166/0.3226, allocations: 0.7117 MB / 443 MB, free: 14.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.3226, allocations: 0 / 443 MB, free: 14.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001066/0.3237, allocations: 0.5139 MB / 443.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.3237, allocations: 8.062 kB / 443.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.256e-05/0.3238, allocations: 36 kB / 443.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001509/0.3239, allocations: 32.84 kB / 443.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003662/0.3243, allocations: 83.81 kB / 443.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001152/0.3255, allocations: 1.441 MB / 445.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003995/0.3259, allocations: 51.56 kB / 445.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.068e-05/0.3259, allocations: 16.14 kB / 445.2 MB, free: 12.05 MB / 366.1 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 (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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003782/0.3263, allocations: 213.7 kB / 445.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/0.3265, allocations: 102.8 kB / 445.5 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001103/0.3276, allocations: 492.1 kB / 446 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.3276, allocations: 4 kB / 446 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.3276, allocations: 0 / 446 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.3276, allocations: 7.922 kB / 446 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006635/0.3283, allocations: 0.5697 MB / 446.5 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.325e-05/0.3284, allocations: 35.94 kB / 446.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003346/0.3287, allocations: 59.95 kB / 446.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001143/0.3288, allocations: 28.84 kB / 446.7 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.593e-05/0.3289, allocations: 11.98 kB / 446.7 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001065/0.3299, allocations: 1.437 MB / 448.1 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.33, allocations: 0 / 448.1 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001293/0.3313, allocations: 0.6151 MB / 448.7 MB, free: 8.258 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000332/0.3316, allocations: 187.8 kB / 448.9 MB, free: 8.055 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001268/0.3318, allocations: 8 kB / 448.9 MB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002762/0.332, allocations: 7.984 kB / 448.9 MB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.3322, allocations: 31.97 kB / 448.9 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.45e-05/0.3322, allocations: 12 kB / 449 MB, free: 7.996 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008403/0.3331, allocations: 0.5426 MB / 449.5 MB, free: 7.445 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3331, allocations: 4 kB / 449.5 MB, free: 7.441 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008032/0.3339, allocations: 235.7 kB / 449.7 MB, free: 7.211 MB / 366.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.002305/0.3362, allocations: 1.406 MB / 451.1 MB, free: 5.766 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001129/0.3374, allocations: 0.489 MB / 451.6 MB, free: 5.258 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.3374, allocations: 0 / 451.6 MB, free: 5.258 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005328/0.3379, allocations: 332.9 kB / 452 MB, free: 4.914 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007349/0.3387, allocations: 127.7 kB / 452.1 MB, free: 4.793 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/0.3493, allocations: 5.897 MB / 458 MB, free: 14.69 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005394/0.3499, allocations: 0.9525 MB / 458.9 MB, free: 13.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002987/0.3502, allocations: 89.19 kB / 459 MB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003512/0.3505, allocations: 319.3 kB / 459.3 MB, free: 13.31 MB / 382.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3506, allocations: 0 / 459.3 MB, free: 13.31 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04697/0.3975, allocations: 17.74 MB / 477.1 MB, free: 11.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.05, allocations: 8.391 kB / 477.1 MB, free: 11.72 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-08 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)