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.001042/0.001042, allocations: 107.6 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001053/0.001053, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 246.4 MB, free: 9.086 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 64.61 kB / 306.6 MB, free: 0.6406 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1019, allocations: 50.52 MB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.006034/0.108, allocations: 5.089 MB / 362.2 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2144/0.3224, allocations: 10.69 MB / 372.9 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008673/0.3233, allocations: 9.906 kB / 372.9 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002225/0.3256, allocations: 0.6366 MB / 373.5 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003897/0.3295, allocations: 0.8534 MB / 374.4 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002314/0.3319, allocations: 0.5282 MB / 374.9 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002783/0.3347, allocations: 1.383 MB / 376.3 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000321/0.335, allocations: 178.5 kB / 376.4 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004306/0.3354, allocations: 284.6 kB / 376.7 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003582/0.3358, allocations: 323.3 kB / 377 MB, free: 8.418 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.725e-05/0.3359, allocations: 31.62 kB / 377.1 MB, free: 8.418 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001938/0.3378, allocations: 0.7487 MB / 377.8 MB, free: 8.402 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.3379, allocations: 113.9 kB / 377.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003095/0.3383, allocations: 400.3 kB / 378.3 MB, free: 8.203 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001693/0.34, allocations: 1.263 MB / 379.6 MB, free: 7.969 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.34, allocations: 0 / 379.6 MB, free: 7.969 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.34, allocations: 0 / 379.6 MB, free: 7.969 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.34, allocations: 1.125 kB / 379.6 MB, free: 7.969 MB / 302.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.001838/0.3418, allocations: 1.322 MB / 380.9 MB, free: 7.121 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.3419, allocations: 8.531 kB / 380.9 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.429e-05/0.342, allocations: 65.75 kB / 381 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.3421, allocations: 117.9 kB / 381.1 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008811/0.343, allocations: 0.7466 MB / 381.8 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.033e-05/0.343, allocations: 19.78 kB / 381.9 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.778e-05/0.3431, allocations: 27.84 kB / 381.9 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000652/0.3437, allocations: 321.1 kB / 382.2 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.3438, allocations: 0.6562 kB / 382.2 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.3438, allocations: 10.53 kB / 382.2 MB, free: 6.531 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/0.3438, allocations: 11.95 kB / 382.2 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006411/0.3445, allocations: 278.2 kB / 382.5 MB, free: 6.445 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00194/0.3464, allocations: 1.37 MB / 383.9 MB, free: 5.562 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006693/0.3471, allocations: 300.3 kB / 384.2 MB, free: 5.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004065/0.3475, allocations: 242.7 kB / 384.4 MB, free: 5.324 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003349/0.3509, allocations: 2.799 MB / 387.2 MB, free: 2.953 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000488/0.3514, allocations: 211.8 kB / 387.4 MB, free: 2.852 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 2.565e-06/0.3514, allocations: 5.062 kB / 387.4 MB, free: 2.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001633/0.353, allocations: 0.6264 MB / 388 MB, free: 2.535 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.942e-05/0.3531, allocations: 61.91 kB / 388.1 MB, free: 2.469 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001026/0.3541, allocations: 0.8111 MB / 388.9 MB, free: 2.133 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/0.3542, allocations: 30.95 kB / 388.9 MB, free: 2.098 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002993/0.3545, allocations: 441.5 kB / 389.4 MB, free: 1.742 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.488e-05/0.3545, allocations: 102.2 kB / 389.5 MB, free: 1.668 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001201/0.3547, allocations: 75.34 kB / 389.5 MB, free: 1.625 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.554e-05/0.3547, allocations: 326.8 kB / 389.9 MB, free: 1.309 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002783/0.355, allocations: 120 kB / 390 MB, free: 1.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003084/0.3553, allocations: 220.4 kB / 390.2 MB, free: 1.105 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001502/0.3569, allocations: 0.7149 MB / 390.9 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.3569, allocations: 1.094 kB / 390.9 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009679/0.3578, allocations: 0.5106 MB / 391.4 MB, free: 0.543 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.3579, allocations: 5.25 kB / 391.4 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.929e-05/0.3579, allocations: 42.31 kB / 391.5 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001289/0.3581, allocations: 26.23 kB / 391.5 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003679/0.3585, allocations: 87.81 kB / 391.6 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001086/0.3595, allocations: 1.444 MB / 393 MB, free: 15.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004003/0.36, allocations: 52 kB / 393.1 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.327e-05/0.36, allocations: 19 kB / 393.1 MB, free: 15.04 MB / 318.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.0003534/0.3604, allocations: 206.9 kB / 393.3 MB, free: 14.87 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.3605, allocations: 109.4 kB / 393.4 MB, free: 14.82 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001131/0.3616, allocations: 497.8 kB / 393.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.3617, allocations: 3.344 kB / 393.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.3617, allocations: 5.125 kB / 393.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.3617, allocations: 5.859 kB / 393.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007489/0.3624, allocations: 0.5622 MB / 394.5 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.258e-05/0.3625, allocations: 32.5 kB / 394.5 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003303/0.3628, allocations: 57.67 kB / 394.6 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.094e-05/0.3629, allocations: 25.91 kB / 394.6 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.262e-05/0.363, allocations: 11.52 kB / 394.6 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001122/0.3641, allocations: 1.441 MB / 396 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.3641, allocations: 4.203 kB / 396 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001333/0.3655, allocations: 0.6086 MB / 396.6 MB, free: 12.46 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002783/0.3658, allocations: 182.1 kB / 396.8 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.031e-05/0.3659, allocations: 5.375 kB / 396.8 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000245/0.3661, allocations: 14.86 kB / 396.8 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.3662, allocations: 33.78 kB / 396.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.264e-05/0.3663, allocations: 9.625 kB / 396.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008537/0.3671, allocations: 0.5444 MB / 397.4 MB, free: 11.95 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3671, allocations: 0 / 397.4 MB, free: 11.95 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001008/0.3681, allocations: 241.7 kB / 397.7 MB, free: 11.89 MB / 318.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.002352/0.3705, allocations: 1.427 MB / 399.1 MB, free: 10.91 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.3716, allocations: 0.4924 MB / 399.6 MB, free: 10.61 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3716, allocations: 4.062 kB / 399.6 MB, free: 10.61 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005495/0.3722, allocations: 332.5 kB / 399.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006907/0.3729, allocations: 115.1 kB / 400 MB, free: 10.31 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01184/0.3847, allocations: 6.476 MB / 406.5 MB, free: 5.371 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006117/0.3854, allocations: 0.9602 MB / 407.5 MB, free: 4.383 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004048/0.3858, allocations: 85.2 kB / 407.5 MB, free: 4.301 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004725/0.3863, allocations: 315.3 kB / 407.8 MB, free: 3.992 MB / 318.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3863, allocations: 0 / 407.8 MB, free: 3.992 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04415/0.4304, allocations: 17.04 MB / 424.9 MB, free: 3.133 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002286/0.4307, allocations: 235.9 kB / 425.1 MB, free: 2.879 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.344/2.775, allocations: 0 / 425.1 MB, free: 2.879 MB / 334.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)