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.001299/0.001299, allocations: 106.6 kB / 17.06 MB, free: 6.102 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.001459/0.001459, allocations: 193.4 kB / 18 MB, free: 5.172 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.555/1.555, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 51.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2602, allocations: 49.44 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006556/0.2668, allocations: 5.196 MB / 405.4 MB, free: 3.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009407/0.2762, allocations: 6.612 MB / 412 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001004/0.2772, allocations: 43.62 kB / 412.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00169/0.2789, allocations: 0.4958 MB / 412.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002527/0.2816, allocations: 0.8147 MB / 413.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001325/0.2829, allocations: 434.4 kB / 413.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002971/0.2859, allocations: 1.997 MB / 415.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003209/0.2862, allocations: 171 kB / 416 MB, free: 8.984 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005032/0.2867, allocations: 354.2 kB / 416.3 MB, free: 8.637 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000441/0.2872, allocations: 349.6 kB / 416.7 MB, free: 8.293 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.933e-05/0.2873, allocations: 32 kB / 416.7 MB, free: 8.262 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001148/0.2884, allocations: 491.5 kB / 417.2 MB, free: 7.781 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001162/0.2886, allocations: 107.2 kB / 417.3 MB, free: 7.676 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004171/0.289, allocations: 445.1 kB / 417.7 MB, free: 7.238 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001619/0.2906, allocations: 1.279 MB / 419 MB, free: 5.953 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.2906, allocations: 8 kB / 419 MB, free: 5.945 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2906, allocations: 0 / 419 MB, free: 5.945 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.2907, 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.002033/0.2927, allocations: 1.482 MB / 420.5 MB, free: 4.402 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.2928, allocations: 12.03 kB / 420.5 MB, free: 4.391 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.661e-05/0.2928, allocations: 54.55 kB / 420.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001834/0.293, allocations: 135.1 kB / 420.7 MB, free: 4.195 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00115/0.2942, allocations: 0.8632 MB / 421.6 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.2942, allocations: 12.44 kB / 421.6 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.932e-05/0.2943, allocations: 24 kB / 421.6 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005535/0.2948, allocations: 314.6 kB / 421.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.2949, allocations: 0 / 421.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.566e-05/0.2949, allocations: 12 kB / 421.9 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.2949, allocations: 11.88 kB / 421.9 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004185/0.2953, allocations: 221.8 kB / 422.1 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001729/0.2971, allocations: 1.126 MB / 423.3 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004292/0.2975, allocations: 250.3 kB / 423.5 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000506/0.298, allocations: 297 kB / 423.8 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009901/0.299, allocations: 0.7554 MB / 424.6 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.2991, allocations: 38.56 kB / 424.6 MB, free: 12 kB / 334.1 MB Notification: Performance of pre-optimization done (n=38): time 1.864e-06/0.2991, allocations: 0 / 424.6 MB, free: 12 kB / 334.1 MB Notification: Performance of matching and sorting (n=39): time 0.003055/0.3022, allocations: 1.566 MB / 426.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.426e-05/0.3023, allocations: 118.8 kB / 426.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/0.3033, allocations: 0.9301 MB / 427.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.706e-05/0.3033, allocations: 33.7 kB / 427.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003075/0.3036, allocations: 361.7 kB / 427.6 MB, free: 12.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.3038, allocations: 134.7 kB / 427.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001728/0.3039, allocations: 117.7 kB / 427.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.3041, allocations: 329.9 kB / 428.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002581/0.3043, allocations: 124.6 kB / 428.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002745/0.3046, allocations: 159.8 kB / 428.4 MB, free: 12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001494/0.3061, allocations: 0.7294 MB / 429.2 MB, free: 11.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.3061, allocations: 0 / 429.2 MB, free: 11.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009825/0.3071, allocations: 0.5622 MB / 429.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.788e-05/0.3072, allocations: 41.72 kB / 429.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.29e-05/0.3072, allocations: 16 kB / 429.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000236/0.3075, allocations: 69.69 kB / 429.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002264/0.3077, allocations: 43.91 kB / 429.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002824/0.3105, allocations: 3.324 MB / 433.2 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003026/0.3109, allocations: 28.06 kB / 433.2 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.267e-05/0.3109, allocations: 16 kB / 433.3 MB, free: 6.832 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.0004172/0.3114, allocations: 257.6 kB / 433.5 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001631/0.3115, allocations: 139.1 kB / 433.6 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001335/0.3129, allocations: 0.6568 MB / 434.3 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.3129, allocations: 4 kB / 434.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.3129, allocations: 0 / 434.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3129, allocations: 3.938 kB / 434.3 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007565/0.3137, allocations: 0.6121 MB / 434.9 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.057e-05/0.3137, allocations: 27.92 kB / 435 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001809/0.3139, allocations: 27.98 kB / 435 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002016/0.3141, allocations: 73.67 kB / 435.1 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.057e-05/0.3142, allocations: 15.98 kB / 435.1 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002743/0.3169, allocations: 3.332 MB / 438.4 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3169, allocations: 3.938 kB / 438.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001379/0.3183, allocations: 0.8595 MB / 439.3 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003666/0.3187, allocations: 272.2 kB / 439.5 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.312e-05/0.3188, allocations: 8.062 kB / 439.5 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002727/0.3191, allocations: 23.92 kB / 439.6 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.446e-05/0.3192, allocations: 35.97 kB / 439.6 MB, free: 92 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.362e-05/0.3192, allocations: 15.98 kB / 439.6 MB, free: 76 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008196/0.3201, allocations: 0.6295 MB / 440.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3201, allocations: 0 / 440.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008149/0.3209, allocations: 227.5 kB / 440.5 MB, free: 15.22 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.002123/0.323, allocations: 1.601 MB / 442.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001192/0.3242, allocations: 0.7766 MB / 442.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/0.3243, allocations: 4 kB / 442.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007426/0.325, allocations: 0.6166 MB / 443.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006122/0.3256, allocations: 124.7 kB / 443.6 MB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007737/0.3334, allocations: 5.749 MB / 449.3 MB, free: 6.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006714/0.3341, allocations: 1.008 MB / 450.3 MB, free: 4.984 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000276/0.3344, allocations: 89.64 kB / 450.4 MB, free: 4.895 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003319/0.3347, allocations: 295.3 kB / 450.7 MB, free: 4.609 MB / 366.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3347, allocations: 0 / 450.7 MB, free: 4.609 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06213/0.3969, allocations: 17.25 MB / 468 MB, free: 3.504 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.05, allocations: 7.797 kB / 468 MB, free: 3.496 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)