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.0007992/0.0007994, allocations: 89.39 kB / 16.32 MB, free: 6.453 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.0008928/0.0008928, allocations: 176.2 kB / 17.21 MB, free: 6.328 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.343/1.343, allocations: 223.3 MB / 241.2 MB, free: 14.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002872/0.0002873, allocations: 8 kB / 300.9 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09645/0.09676, allocations: 50.41 MB / 351.3 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.00469/0.1015, allocations: 4.399 MB / 355.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01014/0.1117, allocations: 9.83 MB / 365.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007244/0.1124, allocations: 11.94 kB / 365.6 MB, free: 5.406 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001623/0.1141, allocations: 0.5905 MB / 366.2 MB, free: 4.812 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002433/0.1165, allocations: 0.757 MB / 366.9 MB, free: 4.051 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000988/0.1175, allocations: 403 kB / 367.3 MB, free: 3.656 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001899/0.1194, allocations: 1.252 MB / 368.6 MB, free: 2.398 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000314/0.1198, allocations: 155.8 kB / 368.7 MB, free: 2.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004027/0.1202, allocations: 246.8 kB / 369 MB, free: 1.988 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003424/0.1205, allocations: 290.2 kB / 369.2 MB, free: 1.703 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.828e-05/0.1206, allocations: 20 kB / 369.3 MB, free: 1.684 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001434/0.122, allocations: 0.6712 MB / 369.9 MB, free: 1.012 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.1221, allocations: 91.38 kB / 370 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002055/0.1224, allocations: 193.1 kB / 370.2 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1958/0.3182, allocations: 0.8827 MB / 371.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.3183, allocations: 0.5625 kB / 371.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.3183, allocations: 0.9062 kB / 371.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.876e-05/0.3183, allocations: 0 / 371.1 MB, free: 11.74 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.001876/0.3202, allocations: 1.206 MB / 372.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.3203, allocations: 10.72 kB / 372.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.012e-05/0.3204, allocations: 65.36 kB / 372.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001435/0.3205, allocations: 119.5 kB / 372.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/0.3216, allocations: 0.7012 MB / 373.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.3217, allocations: 16.91 kB / 373.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.255e-05/0.3217, allocations: 31.39 kB / 373.2 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007139/0.3224, allocations: 331 kB / 373.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.3225, allocations: 0 / 373.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.288e-05/0.3225, allocations: 12.34 kB / 373.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.3225, allocations: 11.12 kB / 373.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006641/0.3232, allocations: 294.3 kB / 373.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00193/0.3251, allocations: 1.372 MB / 375.3 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007231/0.3259, allocations: 314 kB / 375.6 MB, free: 9.961 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004426/0.3263, allocations: 253.8 kB / 375.8 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003842/0.3302, allocations: 3.599 MB / 379.4 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004333/0.3306, allocations: 206.8 kB / 379.6 MB, free: 6.941 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.274e-06/0.3306, allocations: 0 / 379.6 MB, free: 6.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.00159/0.3322, allocations: 0.759 MB / 380.4 MB, free: 6.637 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.477e-05/0.3323, allocations: 56.25 kB / 380.4 MB, free: 6.574 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001021/0.3333, allocations: 0.8043 MB / 381.2 MB, free: 6.426 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.3333, allocations: 32.02 kB / 381.3 MB, free: 6.395 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003419/0.3337, allocations: 455.6 kB / 381.7 MB, free: 6.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.768e-05/0.3338, allocations: 95 kB / 381.8 MB, free: 6.191 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.098e-05/0.3338, allocations: 6.531 kB / 381.8 MB, free: 6.191 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.196e-05/0.3339, allocations: 321 kB / 382.1 MB, free: 5.887 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003178/0.3342, allocations: 123.7 kB / 382.2 MB, free: 5.887 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00039/0.3346, allocations: 239.7 kB / 382.5 MB, free: 5.758 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003556/0.335, allocations: 151.6 kB / 382.6 MB, free: 5.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.335, allocations: 1.406 kB / 382.6 MB, free: 5.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001013/0.336, allocations: 0.5437 MB / 383.2 MB, free: 5.625 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.829e-05/0.336, allocations: 7.234 kB / 383.2 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.046e-05/0.3361, allocations: 32.39 kB / 383.2 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002407/0.3364, allocations: 60 kB / 383.3 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003208/0.3367, allocations: 84.03 kB / 383.3 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.3381, allocations: 2.64 MB / 386 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003426/0.3385, allocations: 43.83 kB / 386 MB, free: 3.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.264e-05/0.3385, allocations: 18.81 kB / 386 MB, free: 3.07 MB / 302.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 ($PRE.VIN.counter,VIN.counter,$whenCondition1,$PRE.VIN.T0,VIN.T0,$PRE.VIN.counter2,VIN.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000252/0.3388, allocations: 207.5 kB / 386.2 MB, free: 2.953 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.3389, allocations: 112 kB / 386.4 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001176/0.3401, allocations: 0.5115 MB / 386.9 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.3401, allocations: 2.953 kB / 386.9 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.3401, allocations: 5.156 kB / 386.9 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.3401, allocations: 6.203 kB / 386.9 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008079/0.3409, allocations: 0.5569 MB / 387.4 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.444e-05/0.341, allocations: 28.59 kB / 387.5 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002563/0.3412, allocations: 50.48 kB / 387.5 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001493/0.3414, allocations: 45.64 kB / 387.6 MB, free: 2.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.935e-05/0.3414, allocations: 14.33 kB / 387.6 MB, free: 2.566 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001369/0.3428, allocations: 2.64 MB / 390.2 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.3428, allocations: 3.953 kB / 390.2 MB, free: 48 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001277/0.3441, allocations: 0.6293 MB / 390.8 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000244/0.3444, allocations: 180 kB / 391 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.301e-05/0.3445, allocations: 6.562 kB / 391 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002272/0.3447, allocations: 24.52 kB / 391.1 MB, free: 15.74 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.755e-05/0.3448, allocations: 27.34 kB / 391.1 MB, free: 15.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.853e-05/0.3449, allocations: 14.2 kB / 391.1 MB, free: 15.74 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007947/0.3457, allocations: 0.5379 MB / 391.6 MB, free: 15.63 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3457, allocations: 0 / 391.6 MB, free: 15.63 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000807/0.3465, allocations: 244.9 kB / 391.9 MB, free: 15.59 MB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002001/0.3485, allocations: 1.413 MB / 393.3 MB, free: 14.87 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001154/0.3497, allocations: 0.6017 MB / 393.9 MB, free: 14.61 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3497, allocations: 0 / 393.9 MB, free: 14.61 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000638/0.3503, allocations: 448.1 kB / 394.3 MB, free: 14.36 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006242/0.3509, allocations: 112.6 kB / 394.4 MB, free: 14.34 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009751/0.3607, allocations: 4.849 MB / 399.3 MB, free: 12.34 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005968/0.3613, allocations: 0.9593 MB / 400.2 MB, free: 11.62 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003672/0.3617, allocations: 86.23 kB / 400.3 MB, free: 11.6 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000344/0.3621, allocations: 337.7 kB / 400.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3621, allocations: 0 / 400.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03282/0.3949, allocations: 16.34 MB / 417 MB, free: 14.54 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001551/0.3951, allocations: 223 kB / 417.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.318/2.713, allocations: 2.953 kB / 417.2 MB, free: 14.3 MB / 334.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/linux/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)