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.001264/0.001264, allocations: 109.4 kB / 17.73 MB, free: 5.34 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.001254/0.001254, allocations: 184.1 kB / 18.66 MB, free: 4.414 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.448/1.448, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001659/0.001659, allocations: 59.91 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09301/0.09468, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.1852/0.2799, allocations: 5.203 MB / 379.8 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007485/0.2874, allocations: 6.57 MB / 386.4 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006607/0.2882, allocations: 40.12 kB / 386.4 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001412/0.2896, allocations: 0.491 MB / 386.9 MB, free: 6.215 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0025/0.2921, allocations: 0.8119 MB / 387.8 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001333/0.2935, allocations: 429.7 kB / 388.2 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002776/0.2962, allocations: 1.98 MB / 390.2 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003013/0.2966, allocations: 178.2 kB / 390.3 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005034/0.2971, allocations: 338.2 kB / 390.7 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003984/0.2975, allocations: 347.5 kB / 391 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.204e-05/0.2976, allocations: 29.88 kB / 391 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001166/0.2987, allocations: 470.6 kB / 391.5 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.204e-05/0.2988, allocations: 111.1 kB / 391.6 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003085/0.2991, allocations: 449 kB / 392 MB, free: 4.238 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001471/0.3006, allocations: 1.28 MB / 393.3 MB, free: 3.691 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3006, allocations: 4 kB / 393.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3006, allocations: 1.312 kB / 393.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.3007, allocations: 0 / 393.3 MB, free: 3.688 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.00174/0.3024, allocations: 1.486 MB / 394.8 MB, free: 2.582 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.3025, allocations: 9.719 kB / 394.8 MB, free: 2.582 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.604e-05/0.3025, allocations: 64.42 kB / 394.9 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001483/0.3027, allocations: 132.9 kB / 395 MB, free: 2.453 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/0.3037, allocations: 0.8573 MB / 395.9 MB, free: 1.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.3037, allocations: 17.75 kB / 395.9 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.945e-05/0.3038, allocations: 23.05 kB / 395.9 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005053/0.3043, allocations: 309.4 kB / 396.2 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.3043, allocations: 0 / 396.2 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.177e-05/0.3044, allocations: 18.61 kB / 396.2 MB, free: 1.738 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.3044, allocations: 5.406 kB / 396.2 MB, free: 1.738 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003906/0.3048, allocations: 224.3 kB / 396.4 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001584/0.3064, allocations: 1.125 MB / 397.6 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003645/0.3067, allocations: 240.3 kB / 397.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000463/0.3072, allocations: 295.1 kB / 398.1 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008417/0.3081, allocations: 0.757 MB / 398.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.714e-05/0.3081, allocations: 42.72 kB / 398.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of pre-optimization done (n=38): time 2.004e-06/0.3081, allocations: 0 / 398.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=39): time 0.003025/0.3112, allocations: 1.556 MB / 400.4 MB, free: 14.95 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.508e-05/0.3112, allocations: 113.9 kB / 400.6 MB, free: 14.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00107/0.3123, allocations: 0.9358 MB / 401.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.677e-05/0.3124, allocations: 31.92 kB / 401.5 MB, free: 14.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003254/0.3127, allocations: 354.3 kB / 401.9 MB, free: 14.13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/0.3128, allocations: 141.7 kB / 402 MB, free: 14.02 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002117/0.313, allocations: 123 kB / 402.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3132, allocations: 325.6 kB / 402.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002546/0.3135, allocations: 121.6 kB / 402.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002856/0.3138, allocations: 162.4 kB / 402.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001465/0.3152, allocations: 0.7366 MB / 403.5 MB, free: 13.13 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.3152, allocations: 0 / 403.5 MB, free: 13.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009719/0.3162, allocations: 0.5597 MB / 404 MB, free: 12.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.726e-05/0.3163, allocations: 43.44 kB / 404.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.089e-05/0.3163, allocations: 16.31 kB / 404.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002242/0.3166, allocations: 71.3 kB / 404.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002304/0.3168, allocations: 47.23 kB / 404.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003166/0.32, allocations: 3.331 MB / 407.5 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005004/0.3205, allocations: 10.91 kB / 407.5 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-05/0.3206, allocations: 26.59 kB / 407.6 MB, free: 9.504 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.0006795/0.3213, allocations: 264.2 kB / 407.8 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002096/0.3215, allocations: 125.7 kB / 407.9 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00151/0.323, allocations: 0.6628 MB / 408.6 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.323, allocations: 3.812 kB / 408.6 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.3231, allocations: 5.219 kB / 408.6 MB, free: 8.891 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.3231, allocations: 2.938 kB / 408.6 MB, free: 8.891 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.3241, allocations: 0.6169 MB / 409.2 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-05/0.3242, allocations: 12.39 kB / 409.2 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001892/0.3244, allocations: 43.44 kB / 409.3 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002048/0.3246, allocations: 65.83 kB / 409.4 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.99e-05/0.3246, allocations: 19.64 kB / 409.4 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002956/0.3276, allocations: 3.328 MB / 412.7 MB, free: 5.172 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.3276, allocations: 4 kB / 412.7 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001575/0.3292, allocations: 0.8618 MB / 413.6 MB, free: 4.629 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004738/0.3297, allocations: 281.9 kB / 413.8 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.3298, allocations: 10.72 kB / 413.9 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002682/0.3301, allocations: 14.22 kB / 413.9 MB, free: 4.375 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.3302, allocations: 28.53 kB / 413.9 MB, free: 4.363 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.619e-05/0.3302, allocations: 21.3 kB / 413.9 MB, free: 4.355 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009092/0.3311, allocations: 0.624 MB / 414.5 MB, free: 4 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3312, allocations: 0 / 414.5 MB, free: 4 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009582/0.3321, allocations: 229.9 kB / 414.8 MB, free: 3.949 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.002254/0.3344, allocations: 1.617 MB / 416.4 MB, free: 2.773 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.3356, allocations: 0.7763 MB / 417.2 MB, free: 2.164 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3356, allocations: 0 / 417.2 MB, free: 2.164 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007435/0.3364, allocations: 0.6232 MB / 417.8 MB, free: 1.613 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006274/0.337, allocations: 94.45 kB / 417.9 MB, free: 1.555 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008074/0.3451, allocations: 5.775 MB / 423.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006816/0.3458, allocations: 1 MB / 424.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002878/0.3461, allocations: 97.64 kB / 424.7 MB, free: 12.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000335/0.3464, allocations: 279.3 kB / 425 MB, free: 11.74 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3464, allocations: 3.938 kB / 425 MB, free: 11.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0535/0.3999, allocations: 17.26 MB / 442.3 MB, free: 10.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/11.99, allocations: 12.84 kB / 442.3 MB, free: 10.4 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)