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.001216/0.001216, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001291/0.001291, allocations: 202 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.354/1.354, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 63.89 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2844, allocations: 50.54 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.005748/0.2902, allocations: 5.076 MB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0111/0.3013, allocations: 10.81 MB / 424.6 MB, free: 1.562 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008273/0.3022, allocations: 23.81 kB / 424.7 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001881/0.3041, allocations: 0.6998 MB / 425.4 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003123/0.3073, allocations: 0.9985 MB / 426.4 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001558/0.3088, allocations: 0.6037 MB / 427 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002181/0.311, allocations: 1.389 MB / 428.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002721/0.3113, allocations: 181.2 kB / 428.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000331/0.3117, allocations: 282.6 kB / 428.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003372/0.312, allocations: 325.9 kB / 429.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.566e-05/0.3121, allocations: 32 kB / 429.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001513/0.3136, allocations: 0.7415 MB / 429.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.3137, allocations: 119.2 kB / 430 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003354/0.3141, allocations: 401.4 kB / 430.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00156/0.3156, allocations: 1.273 MB / 431.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.3157, allocations: 0 / 431.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3157, allocations: 0 / 431.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.322e-05/0.3157, allocations: 0 / 431.7 MB, free: 10.48 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.001788/0.3175, allocations: 1.315 MB / 433 MB, free: 9.109 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.3175, allocations: 8.031 kB / 433 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.437e-05/0.3176, allocations: 70.72 kB / 433.1 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001372/0.3178, allocations: 115.6 kB / 433.2 MB, free: 8.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001011/0.3188, allocations: 0.7469 MB / 433.9 MB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.639e-05/0.3188, allocations: 20.56 kB / 434 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.704e-05/0.3189, allocations: 24 kB / 434 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000607/0.3195, allocations: 321.3 kB / 434.3 MB, free: 7.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.3195, allocations: 0 / 434.3 MB, free: 7.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.284e-05/0.3195, allocations: 12 kB / 434.3 MB, free: 7.738 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.422e-05/0.3196, allocations: 15.98 kB / 434.3 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000597/0.3202, allocations: 270.2 kB / 434.6 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.322, allocations: 1.361 MB / 435.9 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006438/0.3227, allocations: 306.5 kB / 436.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003874/0.3231, allocations: 240.7 kB / 436.5 MB, free: 5.457 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00339/0.3265, allocations: 2.798 MB / 439.3 MB, free: 2.281 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004725/0.3269, allocations: 215.2 kB / 439.5 MB, free: 2.059 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 2.314e-06/0.327, allocations: 0 / 439.5 MB, free: 2.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.001439/0.3284, allocations: 0.6309 MB / 440.1 MB, free: 1.398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.065e-05/0.3285, allocations: 59.34 kB / 440.2 MB, free: 1.328 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008025/0.3293, allocations: 0.8071 MB / 441 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.545e-05/0.3293, allocations: 33.7 kB / 441 MB, free: 476 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003155/0.3296, allocations: 444.5 kB / 441.4 MB, free: 28 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.392e-05/0.3297, allocations: 106.6 kB / 441.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.3298, allocations: 65.94 kB / 441.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.33, allocations: 333.9 kB / 441.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002779/0.3302, allocations: 116.7 kB / 442.1 MB, free: 15.4 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003305/0.3306, allocations: 222.5 kB / 442.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001478/0.3321, allocations: 0.7108 MB / 443 MB, free: 14.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.3321, allocations: 4 kB / 443 MB, free: 14.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008926/0.333, allocations: 0.5059 MB / 443.5 MB, free: 13.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.333, allocations: 8 kB / 443.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.445e-05/0.3331, allocations: 36 kB / 443.5 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001216/0.3332, allocations: 28.84 kB / 443.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003456/0.3336, allocations: 96.06 kB / 443.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001182/0.3348, allocations: 1.441 MB / 445.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002833/0.3351, allocations: 47.5 kB / 445.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.782e-05/0.3351, allocations: 20 kB / 445.2 MB, free: 12.06 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.0003307/0.3354, allocations: 211 kB / 445.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.886e-05/0.3355, allocations: 102.8 kB / 445.5 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001015/0.3366, allocations: 499.3 kB / 446 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.3366, allocations: 0 / 446 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.3366, allocations: 8 kB / 446 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.3366, allocations: 7.922 kB / 446 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000525/0.3371, allocations: 0.5658 MB / 446.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.414e-05/0.3372, allocations: 32 kB / 446.6 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000303/0.3375, allocations: 59.95 kB / 446.6 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.116e-05/0.3376, allocations: 20.84 kB / 446.6 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.668e-05/0.3376, allocations: 15.98 kB / 446.7 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001011/0.3386, allocations: 1.441 MB / 448.1 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.3387, allocations: 8.062 kB / 448.1 MB, free: 8.898 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.3397, allocations: 0.6072 MB / 448.7 MB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001826/0.3399, allocations: 187.8 kB / 448.9 MB, free: 8.066 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.002e-05/0.34, allocations: 8 kB / 448.9 MB, free: 8.059 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002184/0.3402, allocations: 15.98 kB / 448.9 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.582e-05/0.3403, allocations: 23.97 kB / 449 MB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.366e-05/0.3404, allocations: 8 kB / 449 MB, free: 8.012 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006147/0.341, allocations: 0.5504 MB / 449.5 MB, free: 7.453 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.341, allocations: 0 / 449.5 MB, free: 7.453 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005887/0.3416, allocations: 239.7 kB / 449.7 MB, free: 7.219 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.001775/0.3434, allocations: 1.413 MB / 451.2 MB, free: 5.766 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008865/0.3443, allocations: 493.5 kB / 451.6 MB, free: 5.266 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3443, allocations: 4.062 kB / 451.6 MB, free: 5.262 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004608/0.3447, allocations: 336.2 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.0005199/0.3453, allocations: 124 kB / 452.1 MB, free: 4.797 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008166/0.3535, allocations: 5.884 MB / 458 MB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005484/0.354, allocations: 0.9603 MB / 458.9 MB, free: 13.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002551/0.3543, allocations: 85.19 kB / 459 MB, free: 13.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003637/0.3547, allocations: 315.3 kB / 459.3 MB, free: 13.34 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3547, allocations: 0 / 459.3 MB, free: 13.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04546/0.4002, allocations: 17.74 MB / 477.1 MB, free: 11.74 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/12, allocations: 4.344 kB / 477.1 MB, free: 11.74 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)