Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.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.Graetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz",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.001155/0.001155, allocations: 104.2 kB / 17.06 MB, free: 6.027 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.001272/0.001272, allocations: 196 kB / 18 MB, free: 5.109 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.346/1.346, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00108/0.00108, allocations: 51.91 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.2995, allocations: 49.43 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006545/0.3061, allocations: 5.191 MB / 405.4 MB, free: 3.613 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009004/0.3151, allocations: 6.625 MB / 412 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001102/0.3162, allocations: 39.69 kB / 412.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001756/0.318, allocations: 0.5007 MB / 412.6 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002771/0.3209, allocations: 0.8147 MB / 413.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001373/0.3223, allocations: 438.4 kB / 413.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00325/0.3255, allocations: 1.993 MB / 415.8 MB, free: 9.168 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003528/0.3259, allocations: 175 kB / 416 MB, free: 8.984 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006272/0.3265, allocations: 370.2 kB / 416.3 MB, free: 8.621 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005334/0.3271, allocations: 341.7 kB / 416.7 MB, free: 8.285 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001346/0.3272, allocations: 32 kB / 416.7 MB, free: 8.254 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001136/0.3284, allocations: 495.5 kB / 417.2 MB, free: 7.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.3285, allocations: 111.2 kB / 417.3 MB, free: 7.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005647/0.3291, allocations: 449 kB / 417.7 MB, free: 7.219 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002049/0.3312, allocations: 1.265 MB / 419 MB, free: 5.949 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3312, allocations: 0 / 419 MB, free: 5.949 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.3312, allocations: 3.984 kB / 419 MB, free: 5.945 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.241e-05/0.3312, allocations: 0 / 419 MB, free: 5.945 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.002434/0.3337, allocations: 1.44 MB / 420.4 MB, free: 4.445 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.3337, allocations: 8.031 kB / 420.5 MB, free: 4.438 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001513/0.3339, allocations: 62.55 kB / 420.5 MB, free: 4.367 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000221/0.3341, allocations: 130.4 kB / 420.6 MB, free: 4.238 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001202/0.3353, allocations: 0.8541 MB / 421.5 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.639e-05/0.3354, allocations: 20.38 kB / 421.5 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.51e-05/0.3354, allocations: 20 kB / 421.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005707/0.336, allocations: 302.7 kB / 421.8 MB, free: 2.988 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.336, allocations: 0 / 421.8 MB, free: 2.988 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.183e-05/0.3361, allocations: 15.98 kB / 421.8 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.3361, allocations: 7.938 kB / 421.9 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004161/0.3365, allocations: 229.8 kB / 422.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001933/0.3385, allocations: 1.11 MB / 423.2 MB, free: 1.578 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004254/0.3389, allocations: 246.4 kB / 423.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004813/0.3394, allocations: 293 kB / 423.7 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009981/0.3404, allocations: 0.7632 MB / 424.5 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.332e-05/0.3405, allocations: 42.5 kB / 424.5 MB, free: 76 kB / 334.1 MB Notification: Performance of pre-optimization done (n=38): time 1.843e-06/0.3405, allocations: 0 / 424.5 MB, free: 76 kB / 334.1 MB Notification: Performance of matching and sorting (n=39): time 0.003142/0.3436, allocations: 1.549 MB / 426.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.72e-05/0.3437, allocations: 118.8 kB / 426.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001178/0.3449, allocations: 0.9262 MB / 427.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.601e-05/0.3449, allocations: 29.7 kB / 427.1 MB, free: 13.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002964/0.3452, allocations: 361.5 kB / 427.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/0.3454, allocations: 130 kB / 427.6 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002066/0.3456, allocations: 121.5 kB / 427.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.3457, allocations: 325.9 kB / 428.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002576/0.346, allocations: 120.6 kB / 428.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002709/0.3463, allocations: 159.8 kB / 428.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001436/0.3477, allocations: 0.7333 MB / 429.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3477, allocations: 0 / 429.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009709/0.3487, allocations: 0.5654 MB / 429.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.973e-05/0.3488, allocations: 41.62 kB / 429.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.27e-05/0.3488, allocations: 16 kB / 429.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002224/0.349, allocations: 69.67 kB / 429.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002355/0.3493, allocations: 47.97 kB / 429.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002663/0.3519, allocations: 3.331 MB / 433.1 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003838/0.3523, allocations: 12.03 kB / 433.1 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-05/0.3524, allocations: 19.98 kB / 433.2 MB, free: 6.918 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: D2.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D4.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D3.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D1.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004617/0.3529, allocations: 257.3 kB / 433.4 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002051/0.3531, allocations: 126.4 kB / 433.5 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001307/0.3544, allocations: 0.6607 MB / 434.2 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.3544, allocations: 4 kB / 434.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.3544, allocations: 4 kB / 434.2 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.3545, allocations: 7.969 kB / 434.2 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007485/0.3552, allocations: 0.616 MB / 434.8 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.664e-05/0.3552, allocations: 15.94 kB / 434.8 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000184/0.3554, allocations: 31.97 kB / 434.9 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001955/0.3556, allocations: 73.55 kB / 435 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.155e-05/0.3557, allocations: 20 kB / 435 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002498/0.3582, allocations: 3.327 MB / 438.3 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3582, allocations: 0 / 438.3 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.3595, allocations: 0.8511 MB / 439.1 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000419/0.36, allocations: 275.6 kB / 439.4 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/0.3601, allocations: 8 kB / 439.4 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002879/0.3604, allocations: 19.92 kB / 439.4 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.213e-05/0.3605, allocations: 39.89 kB / 439.5 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-05/0.3605, allocations: 16 kB / 439.5 MB, free: 176 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007589/0.3613, allocations: 0.6256 MB / 440.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3613, allocations: 0 / 440.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007861/0.3621, allocations: 228 kB / 440.3 MB, free: 15.32 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D1.pin,D4.n.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001971/0.3641, allocations: 1.593 MB / 441.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001113/0.3652, allocations: 0.7767 MB / 442.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.3652, allocations: 0 / 442.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006889/0.3659, allocations: 0.6204 MB / 443.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006063/0.3665, allocations: 108.7 kB / 443.4 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007818/0.3743, allocations: 5.725 MB / 449.2 MB, free: 6.172 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005287/0.3749, allocations: 1.004 MB / 450.2 MB, free: 5.141 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000271/0.3752, allocations: 93.64 kB / 450.3 MB, free: 5.047 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002997/0.3755, allocations: 283.3 kB / 450.5 MB, free: 4.773 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3755, allocations: 3.938 kB / 450.5 MB, free: 4.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04603/0.4215, allocations: 17.54 MB / 468.1 MB, free: 3.383 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.6, allocations: 12.14 kB / 468.1 MB, free: 3.375 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)