Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_3_2_3_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.001683/0.001683, allocations: 110.5 kB / 17.73 MB, free: 5.324 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.001898/0.001898, allocations: 187 kB / 18.66 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.373/1.373, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 55.92 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08975/0.09109, allocations: 46.62 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.1987/0.2899, allocations: 5.192 MB / 379.8 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007453/0.2974, allocations: 6.567 MB / 386.4 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00087/0.2983, allocations: 49.44 kB / 386.4 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001491/0.2998, allocations: 498.4 kB / 386.9 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002376/0.3022, allocations: 0.8119 MB / 387.7 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001514/0.3037, allocations: 431.6 kB / 388.2 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002738/0.3065, allocations: 1.988 MB / 390.2 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00026/0.3068, allocations: 165.1 kB / 390.3 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005473/0.3073, allocations: 371.6 kB / 390.7 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003806/0.3077, allocations: 342.9 kB / 391 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.827e-05/0.3078, allocations: 29.62 kB / 391 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001132/0.3089, allocations: 462.2 kB / 391.5 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.016e-05/0.309, allocations: 111.7 kB / 391.6 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003409/0.3094, allocations: 442.1 kB / 392 MB, free: 4.387 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001537/0.3109, allocations: 1.271 MB / 393.3 MB, free: 3.852 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.3109, allocations: 7.875 kB / 393.3 MB, free: 3.844 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.311, allocations: 8.969 kB / 393.3 MB, free: 3.836 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.705e-05/0.311, allocations: 0 / 393.3 MB, free: 3.836 MB / 318.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.001966/0.3129, allocations: 1.438 MB / 394.8 MB, free: 2.777 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.313, allocations: 9.812 kB / 394.8 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.043e-05/0.3131, allocations: 64.91 kB / 394.8 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001717/0.3132, allocations: 127.4 kB / 395 MB, free: 2.652 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001124/0.3144, allocations: 0.8493 MB / 395.8 MB, free: 2.117 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.3144, allocations: 18.52 kB / 395.8 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.828e-05/0.3145, allocations: 27.56 kB / 395.9 MB, free: 2.098 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005632/0.315, allocations: 312.1 kB / 396.2 MB, free: 1.953 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.3151, allocations: 1.344 kB / 396.2 MB, free: 1.953 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.073e-05/0.3151, allocations: 10.95 kB / 396.2 MB, free: 1.945 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.3151, allocations: 5.719 kB / 396.2 MB, free: 1.945 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004006/0.3155, allocations: 222.7 kB / 396.4 MB, free: 1.867 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001688/0.3172, allocations: 1.118 MB / 397.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003682/0.3176, allocations: 240.4 kB / 397.7 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004633/0.3181, allocations: 286.8 kB / 398 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008733/0.319, allocations: 0.7524 MB / 398.8 MB, free: 216 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.319, allocations: 41.8 kB / 398.8 MB, free: 168 kB / 318.1 MB Notification: Performance of pre-optimization done (n=38): time 2.375e-06/0.319, allocations: 7.938 kB / 398.8 MB, free: 160 kB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.003013/0.322, allocations: 1.555 MB / 400.4 MB, free: 15.17 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.915e-05/0.3221, allocations: 110.3 kB / 400.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001059/0.3232, allocations: 0.9322 MB / 401.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.463e-05/0.3232, allocations: 31.08 kB / 401.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002898/0.3235, allocations: 361.6 kB / 401.8 MB, free: 14.35 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.867e-05/0.3236, allocations: 125 kB / 401.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000175/0.3238, allocations: 116 kB / 402 MB, free: 14.19 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.3239, allocations: 321.9 kB / 402.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002445/0.3242, allocations: 126.4 kB / 402.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002536/0.3244, allocations: 159.7 kB / 402.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001453/0.3259, allocations: 0.7443 MB / 403.4 MB, free: 13.37 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3259, allocations: 1.188 kB / 403.4 MB, free: 13.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009542/0.3269, allocations: 0.548 MB / 403.9 MB, free: 13.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.521e-05/0.3269, allocations: 40.34 kB / 404 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.153e-05/0.327, allocations: 14 kB / 404 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002195/0.3272, allocations: 81.39 kB / 404.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002275/0.3274, allocations: 39.73 kB / 404.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0024/0.3298, allocations: 3.33 MB / 407.4 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004026/0.3303, allocations: 12.47 kB / 407.4 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.978e-05/0.3303, allocations: 25.23 kB / 407.5 MB, free: 9.75 MB / 334.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.0004117/0.3308, allocations: 266.7 kB / 407.7 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/0.3309, allocations: 120.9 kB / 407.8 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001285/0.3322, allocations: 0.673 MB / 408.5 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.3322, allocations: 3.625 kB / 408.5 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3322, allocations: 1.438 kB / 408.5 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.3323, allocations: 8.25 kB / 408.5 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009454/0.3332, allocations: 0.6119 MB / 409.1 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.919e-05/0.3332, allocations: 16.33 kB / 409.2 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001944/0.3334, allocations: 31.72 kB / 409.2 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002144/0.3337, allocations: 76.28 kB / 409.3 MB, free: 8.727 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.266e-05/0.3337, allocations: 18.14 kB / 409.3 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00245/0.3362, allocations: 3.323 MB / 412.6 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3362, allocations: 0 / 412.6 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001347/0.3376, allocations: 0.8568 MB / 413.5 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004768/0.338, allocations: 273.3 kB / 413.7 MB, free: 4.621 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.3381, allocations: 14.83 kB / 413.7 MB, free: 4.609 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002733/0.3384, allocations: 14.86 kB / 413.8 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.816e-05/0.3385, allocations: 30.97 kB / 413.8 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.871e-05/0.3386, allocations: 22.33 kB / 413.8 MB, free: 4.578 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008204/0.3394, allocations: 0.6318 MB / 414.4 MB, free: 4.215 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3394, allocations: 0 / 414.4 MB, free: 4.215 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009992/0.3404, allocations: 218.5 kB / 414.7 MB, free: 4.176 MB / 334.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.002175/0.3426, allocations: 1.61 MB / 416.3 MB, free: 3.008 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00122/0.3438, allocations: 0.779 MB / 417 MB, free: 2.395 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3439, allocations: 3.938 kB / 417 MB, free: 2.391 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006684/0.3445, allocations: 0.6163 MB / 417.7 MB, free: 1.848 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006416/0.3452, allocations: 102.3 kB / 417.8 MB, free: 1.781 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008089/0.3533, allocations: 5.727 MB / 423.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005222/0.3538, allocations: 1 MB / 424.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003024/0.3542, allocations: 93.64 kB / 424.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002922/0.3544, allocations: 279.3 kB / 424.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3545, allocations: 4 kB / 424.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04541/0.3999, allocations: 17.53 MB / 442.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.69, allocations: 4.953 kB / 442.4 MB, free: 10.41 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Graetz_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)