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.001289/0.001289, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001506/0.001506, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.4 MB / 246.3 MB, free: 9.059 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 64.66 kB / 306.4 MB, free: 0.7344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09167/0.09303, allocations: 50.53 MB / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.005757/0.09882, allocations: 5.093 MB / 362 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1573/0.2562, allocations: 11.01 MB / 373 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005869/0.2568, allocations: 10.3 kB / 373 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00167/0.2585, allocations: 0.6403 MB / 373.6 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002329/0.2609, allocations: 0.8148 MB / 374.5 MB, free: 9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001081/0.262, allocations: 439.5 kB / 374.9 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001934/0.2639, allocations: 1.345 MB / 376.2 MB, free: 8.703 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002723/0.2642, allocations: 160.1 kB / 376.4 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002827/0.2645, allocations: 272.1 kB / 376.7 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002496/0.2647, allocations: 315.7 kB / 377 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.433e-05/0.2648, allocations: 22 kB / 377 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001384/0.2662, allocations: 0.7438 MB / 377.7 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.807e-05/0.2663, allocations: 97.86 kB / 377.8 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002867/0.2666, allocations: 388 kB / 378.2 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001496/0.2681, allocations: 1.243 MB / 379.4 MB, free: 7.996 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.2681, allocations: 1.406 kB / 379.4 MB, free: 7.996 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2681, allocations: 3.938 kB / 379.5 MB, free: 7.992 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.174e-05/0.2681, allocations: 0 / 379.5 MB, free: 7.992 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.001728/0.2699, allocations: 1.317 MB / 380.8 MB, free: 7.148 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.2699, allocations: 13.66 kB / 380.8 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.533e-05/0.27, allocations: 64.56 kB / 380.8 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/0.2701, allocations: 117.4 kB / 381 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008128/0.2709, allocations: 0.7477 MB / 381.7 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.271, allocations: 18.97 kB / 381.7 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.909e-05/0.271, allocations: 32.12 kB / 381.8 MB, free: 6.668 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005838/0.2716, allocations: 317.9 kB / 382.1 MB, free: 6.602 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.2716, allocations: 0 / 382.1 MB, free: 6.602 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.106e-05/0.2717, allocations: 15.3 kB / 382.1 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/0.2717, allocations: 7.609 kB / 382.1 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00064/0.2723, allocations: 273.2 kB / 382.4 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.274, allocations: 1.385 MB / 383.7 MB, free: 5.613 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006333/0.2747, allocations: 295.7 kB / 384 MB, free: 5.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000402/0.2751, allocations: 243 kB / 384.3 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00273/0.2778, allocations: 2.793 MB / 387.1 MB, free: 3.016 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000405/0.2782, allocations: 206.5 kB / 387.3 MB, free: 2.914 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.623e-06/0.2782, allocations: 1.375 kB / 387.3 MB, free: 2.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001337/0.2796, allocations: 0.6305 MB / 387.9 MB, free: 2.598 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.438e-05/0.2796, allocations: 54.56 kB / 387.9 MB, free: 2.535 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007874/0.2804, allocations: 0.8111 MB / 388.8 MB, free: 2.199 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.2805, allocations: 31.02 kB / 388.8 MB, free: 2.164 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002451/0.2807, allocations: 442 kB / 389.2 MB, free: 1.812 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.257e-05/0.2808, allocations: 107.1 kB / 389.3 MB, free: 1.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/0.2809, allocations: 74.08 kB / 389.4 MB, free: 1.688 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.004e-05/0.2809, allocations: 327.4 kB / 389.7 MB, free: 1.371 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002893/0.2812, allocations: 121.5 kB / 389.8 MB, free: 1.332 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003102/0.2815, allocations: 225.5 kB / 390.1 MB, free: 1.164 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00143/0.283, allocations: 0.7128 MB / 390.8 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.283, allocations: 1.656 kB / 390.8 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008375/0.2838, allocations: 0.5063 MB / 391.3 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.2839, allocations: 8.688 kB / 391.3 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.249e-05/0.2839, allocations: 35.06 kB / 391.3 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001116/0.284, allocations: 36.95 kB / 391.4 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003611/0.2844, allocations: 79.42 kB / 391.4 MB, free: 0.582 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008947/0.2853, allocations: 1.347 MB / 392.8 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003031/0.2856, allocations: 52.02 kB / 392.8 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.093e-05/0.2857, allocations: 19 kB / 392.8 MB, free: 15.2 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.0002807/0.286, allocations: 205.6 kB / 393.1 MB, free: 15.03 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.2861, allocations: 103.4 kB / 393.2 MB, free: 14.98 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001078/0.2872, allocations: 0.502 MB / 393.7 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.2872, allocations: 2.344 kB / 393.7 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.2872, allocations: 1.125 kB / 393.7 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.2872, allocations: 6.578 kB / 393.7 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006042/0.2878, allocations: 0.5573 MB / 394.2 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.082e-05/0.2879, allocations: 38.05 kB / 394.3 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000339/0.2882, allocations: 58.7 kB / 394.3 MB, free: 14.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.606e-05/0.2883, allocations: 34.8 kB / 394.3 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.962e-05/0.2884, allocations: 9.594 kB / 394.4 MB, free: 14.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009263/0.2893, allocations: 1.331 MB / 395.7 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.2893, allocations: 1.469 kB / 395.7 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/0.2905, allocations: 0.6007 MB / 396.3 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001982/0.2907, allocations: 184.9 kB / 396.5 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.2908, allocations: 5.812 kB / 396.5 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/0.291, allocations: 19.89 kB / 396.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.393e-05/0.2911, allocations: 33.31 kB / 396.5 MB, free: 12.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.878e-05/0.2911, allocations: 12.86 kB / 396.5 MB, free: 12.52 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006131/0.2918, allocations: 0.5479 MB / 397.1 MB, free: 12.19 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2918, allocations: 0 / 397.1 MB, free: 12.19 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006925/0.2925, allocations: 246.7 kB / 397.3 MB, free: 12.13 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.001902/0.2944, allocations: 1.415 MB / 398.7 MB, free: 11.17 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008873/0.2953, allocations: 499.5 kB / 399.2 MB, free: 10.87 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2953, allocations: 0 / 399.2 MB, free: 10.87 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004764/0.2958, allocations: 331.1 kB / 399.6 MB, free: 10.64 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006209/0.2964, allocations: 102.7 kB / 399.7 MB, free: 10.59 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01018/0.3066, allocations: 6.477 MB / 406.1 MB, free: 5.773 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004573/0.3071, allocations: 0.9603 MB / 407.1 MB, free: 4.785 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003187/0.3074, allocations: 85.2 kB / 407.2 MB, free: 4.703 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003198/0.3077, allocations: 307.3 kB / 407.5 MB, free: 4.402 MB / 318.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3077, allocations: 3.938 kB / 407.5 MB, free: 4.398 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0301/0.3378, allocations: 16.72 MB / 424.2 MB, free: 3.836 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001727/0.338, allocations: 246.8 kB / 424.4 MB, free: 3.574 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.116/2.454, allocations: 2.953 kB / 424.4 MB, free: 3.574 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)