Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Graetz.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.Graetz,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001355/0.001356, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001371/0.001371, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.425/1.425, allocations: 227.7 MB / 247.2 MB, free: 10.15 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 71.88 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.2966, allocations: 50.54 MB / 409.1 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006654/0.3033, allocations: 5.205 MB / 414.3 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009226/0.3126, allocations: 6.655 MB / 420.9 MB, free: 5.453 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00078/0.3134, allocations: 43.62 kB / 421 MB, free: 5.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001431/0.3149, allocations: 0.4998 MB / 421.5 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002445/0.3173, allocations: 0.8224 MB / 422.3 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001262/0.3186, allocations: 434.5 kB / 422.7 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003246/0.3219, allocations: 2.048 MB / 424.8 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003481/0.3222, allocations: 163 kB / 424.9 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006795/0.3229, allocations: 358.2 kB / 425.3 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004722/0.3234, allocations: 341.7 kB / 425.6 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.029e-05/0.3235, allocations: 35.94 kB / 425.6 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001287/0.3248, allocations: 0.4956 MB / 426.1 MB, free: 212 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001245/0.3249, allocations: 107.2 kB / 426.2 MB, free: 104 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004975/0.3254, allocations: 449.1 kB / 426.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001809/0.3272, allocations: 1.295 MB / 428 MB, free: 14.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.3273, allocations: 3.984 kB / 428 MB, free: 14.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3273, allocations: 0 / 428 MB, free: 14.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.267e-05/0.3273, allocations: 0 / 428 MB, free: 14.36 MB / 350.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.002127/0.3294, allocations: 1.486 MB / 429.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.3295, allocations: 12.03 kB / 429.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.274e-05/0.3296, allocations: 62.53 kB / 429.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003231/0.3299, allocations: 155 kB / 429.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/0.3311, allocations: 0.8554 MB / 430.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/0.3311, allocations: 20.44 kB / 430.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.245e-05/0.3312, allocations: 23.95 kB / 430.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000564/0.3318, allocations: 306.7 kB / 430.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.3318, allocations: 0 / 430.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.95e-05/0.3318, allocations: 4 kB / 430.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.859e-05/0.3319, allocations: 19.92 kB / 430.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004247/0.3323, allocations: 221.7 kB / 431.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001764/0.3341, allocations: 1.115 MB / 432.2 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004346/0.3345, allocations: 254.4 kB / 432.5 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005129/0.335, allocations: 293 kB / 432.8 MB, free: 9.363 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001144/0.3362, allocations: 0.8347 MB / 433.6 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.758e-05/0.3362, allocations: 38.56 kB / 433.6 MB, free: 8.312 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.903e-06/0.3362, allocations: 0 / 433.6 MB, free: 8.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.003138/0.3394, allocations: 1.556 MB / 435.2 MB, free: 6.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.3395, allocations: 114.8 kB / 435.3 MB, free: 6.523 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001167/0.3407, allocations: 0.9379 MB / 436.3 MB, free: 5.578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.982e-05/0.3407, allocations: 29.7 kB / 436.3 MB, free: 5.543 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003459/0.3411, allocations: 357.8 kB / 436.6 MB, free: 5.188 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.3412, allocations: 138.8 kB / 436.8 MB, free: 5.051 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001928/0.3414, allocations: 117.7 kB / 436.9 MB, free: 4.926 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.3416, allocations: 321.9 kB / 437.2 MB, free: 4.605 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002834/0.3419, allocations: 128.6 kB / 437.3 MB, free: 4.477 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002827/0.3422, allocations: 155.8 kB / 437.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001521/0.3437, allocations: 0.7334 MB / 438.2 MB, free: 3.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.3437, allocations: 4 kB / 438.2 MB, free: 3.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009921/0.3447, allocations: 0.5699 MB / 438.8 MB, free: 2.961 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.956e-05/0.3448, allocations: 37.7 kB / 438.8 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.419e-05/0.3448, allocations: 15.98 kB / 438.8 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002256/0.345, allocations: 73.72 kB / 438.9 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002272/0.3453, allocations: 43.91 kB / 438.9 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003044/0.3483, allocations: 3.332 MB / 442.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003083/0.3487, allocations: 12.02 kB / 442.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-05/0.3487, allocations: 27.92 kB / 442.3 MB, free: 15.13 MB / 366.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.0004492/0.3492, allocations: 257.6 kB / 442.6 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000167/0.3494, allocations: 131.1 kB / 442.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001338/0.3507, allocations: 0.6685 MB / 443.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.3507, allocations: 7.984 kB / 443.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.3507, allocations: 0 / 443.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.3508, allocations: 0 / 443.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007891/0.3515, allocations: 0.6082 MB / 444 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-05/0.3516, allocations: 19.94 kB / 444 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001747/0.3518, allocations: 35.91 kB / 444 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002038/0.352, allocations: 73.67 kB / 444.1 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.756e-05/0.352, allocations: 15.98 kB / 444.1 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00285/0.3549, allocations: 3.328 MB / 447.5 MB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3549, allocations: 0 / 447.5 MB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001417/0.3563, allocations: 0.8633 MB / 448.3 MB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003798/0.3567, allocations: 276.2 kB / 448.6 MB, free: 8.457 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.129e-05/0.3568, allocations: 8 kB / 448.6 MB, free: 8.449 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002562/0.3571, allocations: 16.05 kB / 448.6 MB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.214e-05/0.3572, allocations: 27.97 kB / 448.6 MB, free: 8.406 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.534e-05/0.3572, allocations: 24 kB / 448.7 MB, free: 8.383 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007994/0.358, allocations: 0.6335 MB / 449.3 MB, free: 7.746 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.358, allocations: 0 / 449.3 MB, free: 7.746 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008577/0.3589, allocations: 227.5 kB / 449.5 MB, free: 7.523 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.002254/0.3612, allocations: 1.612 MB / 451.1 MB, free: 5.867 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001249/0.3624, allocations: 0.7885 MB / 451.9 MB, free: 5.016 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3624, allocations: 0 / 451.9 MB, free: 5.016 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007587/0.3632, allocations: 0.6126 MB / 452.5 MB, free: 4.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006443/0.3639, allocations: 120.7 kB / 452.6 MB, free: 4.219 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008108/0.372, allocations: 5.758 MB / 458.4 MB, free: 14.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006858/0.3727, allocations: 1.004 MB / 459.4 MB, free: 13.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002818/0.373, allocations: 93.64 kB / 459.5 MB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003305/0.3733, allocations: 287.3 kB / 459.8 MB, free: 12.9 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3733, allocations: 0 / 459.8 MB, free: 12.9 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05882/0.4322, allocations: 17.31 MB / 477.1 MB, free: 11.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/12.91, allocations: 27.3 kB / 477.1 MB, free: 11.73 MB / 398.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Graetz.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Graetz_res.csv --start-time 0 --stop-time 0.025 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)