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.000972/0.0009721, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001098/0.001098, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 61.61 kB / 307.1 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0907/0.09191, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.005738/0.09768, allocations: 5.081 MB / 362.7 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1828/0.2805, allocations: 10.8 MB / 373.5 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008474/0.2814, allocations: 10.97 kB / 373.5 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002114/0.2836, allocations: 0.6882 MB / 374.2 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003155/0.2868, allocations: 1.016 MB / 375.2 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001846/0.2886, allocations: 0.6056 MB / 375.8 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002271/0.2909, allocations: 1.378 MB / 377.2 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000288/0.2912, allocations: 172.4 kB / 377.3 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003424/0.2916, allocations: 283.8 kB / 377.6 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002963/0.2919, allocations: 322.3 kB / 377.9 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.044e-05/0.2919, allocations: 30.97 kB / 377.9 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001806/0.2937, allocations: 0.7501 MB / 378.7 MB, free: 8.418 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.2939, allocations: 108.8 kB / 378.8 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003628/0.2942, allocations: 406.3 kB / 379.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001989/0.2962, allocations: 1.256 MB / 380.5 MB, free: 7.988 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.319e-06/0.2962, allocations: 0 / 380.5 MB, free: 7.988 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2963, allocations: 1.094 kB / 380.5 MB, free: 7.988 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.394e-05/0.2963, allocations: 0 / 380.5 MB, free: 7.988 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.001979/0.2983, allocations: 1.318 MB / 381.8 MB, free: 7.141 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.2983, allocations: 9.375 kB / 381.8 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.312e-05/0.2984, allocations: 76.95 kB / 381.9 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001266/0.2985, allocations: 112.1 kB / 382 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008583/0.2994, allocations: 0.7466 MB / 382.7 MB, free: 6.668 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/0.2994, allocations: 19.89 kB / 382.7 MB, free: 6.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.558e-05/0.2995, allocations: 29.56 kB / 382.8 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006101/0.3001, allocations: 316.1 kB / 383.1 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.3001, allocations: 0 / 383.1 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.243e-05/0.3001, allocations: 15.12 kB / 383.1 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.3002, allocations: 12.17 kB / 383.1 MB, free: 6.504 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006301/0.3008, allocations: 277.3 kB / 383.4 MB, free: 6.422 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.3027, allocations: 1.383 MB / 384.8 MB, free: 5.527 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006791/0.3034, allocations: 296.6 kB / 385 MB, free: 5.398 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003996/0.3038, allocations: 242 kB / 385.3 MB, free: 5.293 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00328/0.3071, allocations: 2.791 MB / 388.1 MB, free: 2.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004536/0.3076, allocations: 215.4 kB / 388.3 MB, free: 2.824 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 2.645e-06/0.3076, allocations: 0 / 388.3 MB, free: 2.824 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001564/0.3092, allocations: 0.629 MB / 388.9 MB, free: 2.508 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.192e-05/0.3092, allocations: 55.34 kB / 389 MB, free: 2.445 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009818/0.3102, allocations: 0.8103 MB / 389.8 MB, free: 2.109 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.626e-05/0.3102, allocations: 30.89 kB / 389.8 MB, free: 2.074 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003139/0.3106, allocations: 442.6 kB / 390.2 MB, free: 1.719 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.228e-05/0.3106, allocations: 101.8 kB / 390.3 MB, free: 1.645 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.3108, allocations: 74.25 kB / 390.4 MB, free: 1.602 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.07e-05/0.3108, allocations: 330.7 kB / 390.7 MB, free: 1.281 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002769/0.3111, allocations: 116.2 kB / 390.8 MB, free: 1.246 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003159/0.3114, allocations: 225.3 kB / 391.1 MB, free: 1.078 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/0.3129, allocations: 0.7149 MB / 391.8 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.3129, allocations: 1.062 kB / 391.8 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001052/0.314, allocations: 0.5079 MB / 392.3 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.482e-05/0.314, allocations: 13.16 kB / 392.3 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.887e-05/0.3141, allocations: 34.84 kB / 392.3 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001361/0.3142, allocations: 33.67 kB / 392.4 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003641/0.3146, allocations: 91.45 kB / 392.5 MB, free: 496 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001246/0.3158, allocations: 1.45 MB / 393.9 MB, free: 15.03 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004112/0.3163, allocations: 44.86 kB / 394 MB, free: 15.01 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.111e-05/0.3163, allocations: 19.56 kB / 394 MB, free: 15 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.000358/0.3167, allocations: 196.6 kB / 394.2 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001263/0.3168, allocations: 107 kB / 394.3 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001129/0.318, allocations: 496.2 kB / 394.8 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.318, allocations: 7.281 kB / 394.8 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.318, allocations: 1.094 kB / 394.8 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.318, allocations: 2.625 kB / 394.8 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006316/0.3186, allocations: 0.5653 MB / 395.3 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.445e-05/0.3187, allocations: 31.34 kB / 395.4 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003107/0.319, allocations: 56.95 kB / 395.4 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.386e-05/0.3191, allocations: 27.62 kB / 395.4 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.842e-05/0.3191, allocations: 17.55 kB / 395.5 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009634/0.3201, allocations: 1.443 MB / 396.9 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3201, allocations: 0 / 396.9 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001209/0.3213, allocations: 0.6071 MB / 397.5 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002434/0.3216, allocations: 189.9 kB / 397.7 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.361e-05/0.3217, allocations: 6.969 kB / 397.7 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002291/0.3219, allocations: 15.3 kB / 397.7 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.41e-05/0.322, allocations: 29.28 kB / 397.7 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.437e-05/0.322, allocations: 9.625 kB / 397.8 MB, free: 12.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005885/0.3226, allocations: 0.5483 MB / 398.3 MB, free: 11.77 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3226, allocations: 0 / 398.3 MB, free: 11.77 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007268/0.3234, allocations: 242 kB / 398.5 MB, free: 11.71 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.001952/0.3253, allocations: 1.408 MB / 399.9 MB, free: 10.76 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009961/0.3263, allocations: 0.4935 MB / 400.4 MB, free: 10.46 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3264, allocations: 0 / 400.4 MB, free: 10.46 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004666/0.3268, allocations: 333.2 kB / 400.8 MB, free: 10.23 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005947/0.3274, allocations: 116.5 kB / 400.9 MB, free: 10.16 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008607/0.336, allocations: 6.273 MB / 407.2 MB, free: 5.145 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004687/0.3365, allocations: 0.9602 MB / 408.1 MB, free: 4.156 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003175/0.3369, allocations: 85.19 kB / 408.2 MB, free: 4.07 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003329/0.3372, allocations: 319.3 kB / 408.5 MB, free: 3.758 MB / 318.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3372, allocations: 0 / 408.5 MB, free: 3.758 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0402/0.3774, allocations: 17.2 MB / 425.7 MB, free: 2.684 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.24/10.61, allocations: 19.16 kB / 425.7 MB, free: 2.672 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)