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.001424/0.001424, allocations: 109.5 kB / 17.06 MB, free: 6.023 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.001549/0.001549, allocations: 191 kB / 18 MB, free: 5.105 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.354/1.354, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00102/0.00102, allocations: 51.92 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2705, allocations: 49.44 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006616/0.2771, allocations: 5.186 MB / 405.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009858/0.287, allocations: 6.625 MB / 412 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001027/0.2881, allocations: 39.69 kB / 412.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001827/0.29, allocations: 0.5085 MB / 412.6 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002961/0.293, allocations: 0.8225 MB / 413.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001532/0.2945, allocations: 430.4 kB / 413.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003573/0.2981, allocations: 1.993 MB / 415.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003932/0.2985, allocations: 171 kB / 416 MB, free: 8.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007224/0.2993, allocations: 378.1 kB / 416.4 MB, free: 8.621 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005021/0.2998, allocations: 349.7 kB / 416.7 MB, free: 8.277 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000101/0.2999, allocations: 32 kB / 416.7 MB, free: 8.246 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001113/0.301, allocations: 491.5 kB / 417.2 MB, free: 7.766 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.3012, allocations: 111.2 kB / 417.3 MB, free: 7.656 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000493/0.3017, allocations: 441.1 kB / 417.8 MB, free: 7.223 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002127/0.3038, allocations: 1.273 MB / 419 MB, free: 5.945 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3038, allocations: 0 / 419 MB, free: 5.945 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3038, allocations: 0 / 419 MB, free: 5.945 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.078e-05/0.3039, 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.002412/0.3063, allocations: 1.44 MB / 420.5 MB, free: 4.445 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.3064, allocations: 12.03 kB / 420.5 MB, free: 4.434 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.047e-05/0.3064, allocations: 58.55 kB / 420.5 MB, free: 4.367 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001989/0.3066, allocations: 130.4 kB / 420.7 MB, free: 4.238 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/0.3078, allocations: 0.854 MB / 421.5 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.3079, allocations: 16.44 kB / 421.5 MB, free: 3.316 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.507e-05/0.308, allocations: 23.98 kB / 421.6 MB, free: 3.293 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005439/0.3085, allocations: 302.7 kB / 421.8 MB, free: 2.988 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.3085, allocations: 0 / 421.8 MB, free: 2.988 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.156e-05/0.3086, allocations: 16 kB / 421.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.3086, allocations: 11.94 kB / 421.9 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004128/0.309, allocations: 225.8 kB / 422.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001965/0.311, allocations: 1.114 MB / 423.2 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004239/0.3114, allocations: 250.4 kB / 423.5 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004787/0.3119, allocations: 296.9 kB / 423.7 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001044/0.313, allocations: 0.7593 MB / 424.5 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.313, allocations: 30.56 kB / 424.5 MB, free: 80 kB / 334.1 MB Notification: Performance of pre-optimization done (n=38): time 2.204e-06/0.313, allocations: 0 / 424.5 MB, free: 80 kB / 334.1 MB Notification: Performance of matching and sorting (n=39): time 0.002975/0.316, allocations: 1.552 MB / 426.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.619e-05/0.3161, allocations: 114.8 kB / 426.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001143/0.3172, allocations: 0.934 MB / 427.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.228e-05/0.3173, allocations: 33.7 kB / 427.2 MB, free: 13.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002631/0.3175, allocations: 357.5 kB / 427.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/0.3177, allocations: 126.1 kB / 427.6 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002054/0.3179, allocations: 121.5 kB / 427.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.318, allocations: 321.9 kB / 428.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002423/0.3183, allocations: 124.6 kB / 428.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002556/0.3185, allocations: 163.8 kB / 428.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001342/0.3199, allocations: 0.7255 MB / 429.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.3199, allocations: 0 / 429.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009457/0.3209, allocations: 0.5693 MB / 429.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.866e-05/0.3209, allocations: 37.69 kB / 429.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.235e-05/0.321, allocations: 19.94 kB / 429.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002385/0.3212, allocations: 77.7 kB / 429.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000224/0.3214, allocations: 35.98 kB / 429.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002734/0.3242, allocations: 3.335 MB / 433.2 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002882/0.3245, allocations: 16.03 kB / 433.2 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.424e-05/0.3245, allocations: 20 kB / 433.2 MB, free: 6.914 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.0003914/0.3249, allocations: 256 kB / 433.4 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/0.3251, allocations: 126.4 kB / 433.6 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001184/0.3263, allocations: 0.6646 MB / 434.2 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.78e-06/0.3263, allocations: 4 kB / 434.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3263, allocations: 0 / 434.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.3263, allocations: 4 kB / 434.2 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007347/0.3271, allocations: 0.6043 MB / 434.8 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-05/0.3271, allocations: 23.92 kB / 434.9 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001717/0.3273, allocations: 27.98 kB / 434.9 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000189/0.3275, allocations: 81.61 kB / 435 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.683e-05/0.3275, allocations: 19.97 kB / 435 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002445/0.33, allocations: 3.327 MB / 438.3 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.33, allocations: 3.938 kB / 438.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001212/0.3312, allocations: 0.8472 MB / 439.2 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003447/0.3316, allocations: 271.5 kB / 439.4 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.994e-05/0.3316, allocations: 4 kB / 439.4 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002654/0.3319, allocations: 19.92 kB / 439.5 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.559e-05/0.332, allocations: 39.91 kB / 439.5 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.154e-05/0.3321, allocations: 16.08 kB / 439.5 MB, free: 184 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007729/0.3328, allocations: 0.6335 MB / 440.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3329, allocations: 0 / 440.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008085/0.3337, allocations: 223.9 kB / 440.4 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.001955/0.3356, allocations: 1.593 MB / 442 MB, free: 13.69 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.3367, allocations: 0.7844 MB / 442.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3368, allocations: 0 / 442.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006339/0.3374, allocations: 0.6087 MB / 443.3 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006155/0.338, allocations: 120.8 kB / 443.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007295/0.3453, allocations: 5.721 MB / 449.2 MB, free: 6.172 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005497/0.3459, allocations: 0.9999 MB / 450.2 MB, free: 5.145 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002604/0.3462, allocations: 97.62 kB / 450.3 MB, free: 5.047 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000294/0.3465, allocations: 283.3 kB / 450.6 MB, free: 4.77 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3465, allocations: 0 / 450.6 MB, free: 4.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04795/0.3945, allocations: 17.26 MB / 467.8 MB, free: 3.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.53, allocations: 15.33 kB / 467.8 MB, free: 3.648 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)