Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 107.5 kB / 17.06 MB, free: 5.82 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001647/0.001648, allocations: 196 kB / 18 MB, free: 4.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 51.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.2999, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.005533/0.3055, allocations: 5.051 MB / 405.3 MB, free: 3.754 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01127/0.3168, allocations: 10.78 MB / 416.1 MB, free: 8.926 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001056/0.3179, allocations: 31.75 kB / 416.1 MB, free: 8.895 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001985/0.32, allocations: 0.6921 MB / 416.8 MB, free: 8.199 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003163/0.3231, allocations: 1.006 MB / 417.8 MB, free: 7.184 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001736/0.3249, allocations: 0.6076 MB / 418.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002239/0.3272, allocations: 1.358 MB / 419.8 MB, free: 5.215 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003729/0.3275, allocations: 181.2 kB / 419.9 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004247/0.328, allocations: 294.5 kB / 420.2 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003601/0.3283, allocations: 314 kB / 420.5 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.692e-05/0.3284, allocations: 32 kB / 420.6 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001675/0.3301, allocations: 0.7492 MB / 421.3 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001221/0.3302, allocations: 111.3 kB / 421.4 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003791/0.3306, allocations: 405.4 kB / 421.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001707/0.3323, allocations: 1.265 MB / 423.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3324, allocations: 0 / 423.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3324, allocations: 0 / 423.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.34e-05/0.3324, allocations: 0 / 423.1 MB, free: 1.867 MB / 334.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.002033/0.3344, allocations: 1.319 MB / 424.4 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.3345, allocations: 12.03 kB / 424.4 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001128/0.3346, allocations: 66.72 kB / 424.5 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.3347, allocations: 115.5 kB / 424.6 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009923/0.3357, allocations: 0.7508 MB / 425.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.3358, allocations: 16.56 kB / 425.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.523e-05/0.3358, allocations: 28 kB / 425.4 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006777/0.3365, allocations: 317.3 kB / 425.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.3365, allocations: 4 kB / 425.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.057e-05/0.3366, allocations: 8 kB / 425.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/0.3366, allocations: 15.98 kB / 425.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006228/0.3372, allocations: 274.1 kB / 426 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002024/0.3393, allocations: 1.361 MB / 427.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007103/0.34, allocations: 302.5 kB / 427.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004113/0.3404, allocations: 244.6 kB / 427.9 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004586/0.345, allocations: 3.585 MB / 431.5 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004744/0.3455, allocations: 203.2 kB / 431.7 MB, free: 8.492 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 3.486e-06/0.3455, allocations: 3.938 kB / 431.7 MB, free: 8.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001705/0.3473, allocations: 0.724 MB / 432.4 MB, free: 7.715 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.3473, allocations: 59.39 kB / 432.5 MB, free: 7.645 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009511/0.3483, allocations: 0.8154 MB / 433.3 MB, free: 6.812 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.582e-05/0.3483, allocations: 33.64 kB / 433.3 MB, free: 6.773 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003391/0.3487, allocations: 452.4 kB / 433.8 MB, free: 6.328 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.47e-05/0.3487, allocations: 94.59 kB / 433.8 MB, free: 6.234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.3489, allocations: 69.94 kB / 433.9 MB, free: 6.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.349, allocations: 325.9 kB / 434.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002881/0.3493, allocations: 120.7 kB / 434.3 MB, free: 5.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003581/0.3496, allocations: 232 kB / 434.6 MB, free: 5.449 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006763/0.3503, allocations: 369.3 kB / 434.9 MB, free: 5.043 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.3503, allocations: 0 / 434.9 MB, free: 5.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001033/0.3514, allocations: 0.5171 MB / 435.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.3514, allocations: 4 kB / 435.5 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.435e-05/0.3515, allocations: 32 kB / 435.5 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002458/0.3517, allocations: 58.08 kB / 435.5 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003221/0.3521, allocations: 75.88 kB / 435.6 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002128/0.3542, allocations: 2.859 MB / 438.5 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003479/0.3546, allocations: 39.67 kB / 438.5 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.106e-05/0.3546, allocations: 16 kB / 438.5 MB, free: 1.141 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (36): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003018/0.3549, allocations: 205.7 kB / 438.7 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.355, allocations: 106.7 kB / 438.8 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001072/0.3561, allocations: 485.9 kB / 439.3 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.3561, allocations: 8 kB / 439.3 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.3561, allocations: 0 / 439.3 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3562, allocations: 0 / 439.3 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006239/0.3568, allocations: 0.5583 MB / 439.9 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.547e-05/0.3568, allocations: 35.92 kB / 439.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002563/0.3571, allocations: 43.91 kB / 440 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001549/0.3573, allocations: 57.66 kB / 440 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.3573, allocations: 12 kB / 440 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001915/0.3592, allocations: 2.84 MB / 442.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3592, allocations: 4.125 kB / 442.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001175/0.3604, allocations: 0.5996 MB / 443.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002362/0.3607, allocations: 183.8 kB / 443.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.98e-05/0.3607, allocations: 8 kB / 443.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/0.361, allocations: 11.98 kB / 443.7 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.313e-05/0.3611, allocations: 23.97 kB / 443.7 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.739e-05/0.3611, allocations: 15.98 kB / 443.7 MB, free: 11.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006087/0.3617, allocations: 0.5467 MB / 444.3 MB, free: 11.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3617, allocations: 0 / 444.3 MB, free: 11.01 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006099/0.3623, allocations: 251.7 kB / 444.5 MB, free: 10.76 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Q1.vbe,Q1.vbc) * 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 (18): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (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.002004/0.3644, allocations: 1.402 MB / 445.9 MB, free: 9.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.3655, allocations: 0.5855 MB / 446.5 MB, free: 8.703 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.3655, allocations: 0 / 446.5 MB, free: 8.703 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005837/0.3661, allocations: 437 kB / 446.9 MB, free: 8.246 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005887/0.3667, allocations: 112.5 kB / 447 MB, free: 8.137 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008044/0.3747, allocations: 5.788 MB / 452.8 MB, free: 2.121 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005298/0.3753, allocations: 0.96 MB / 453.8 MB, free: 1.133 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002542/0.3756, allocations: 77.22 kB / 453.8 MB, free: 1.059 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003563/0.3759, allocations: 327.3 kB / 454.2 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3759, allocations: 4 kB / 454.2 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04473/0.4207, allocations: 17.79 MB / 472 MB, free: 15.15 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.48, allocations: 0.625 kB / 472 MB, free: 15.15 MB / 398.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-08 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)