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.00108/0.001081, allocations: 107.9 kB / 16.92 MB, free: 6.332 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.001012/0.001011, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.346/1.346, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009985/0.0009985, allocations: 44.02 kB / 300.7 MB, free: 5.816 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1084, allocations: 49.45 MB / 350.2 MB, free: 4.359 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006427/0.1149, allocations: 5.197 MB / 355.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008732/0.1236, allocations: 6.631 MB / 362 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007588/0.1244, allocations: 35.75 kB / 362 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001448/0.1259, allocations: 0.4929 MB / 362.5 MB, free: 7.949 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003526/0.1295, allocations: 0.8108 MB / 363.3 MB, free: 7.133 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001856/0.1314, allocations: 438.4 kB / 363.8 MB, free: 6.703 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003433/0.1348, allocations: 1.993 MB / 365.7 MB, free: 4.703 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003472/0.1352, allocations: 159 kB / 365.9 MB, free: 4.531 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000527/0.1357, allocations: 350.3 kB / 366.2 MB, free: 4.188 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005107/0.1362, allocations: 345.7 kB / 366.6 MB, free: 3.848 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.1364, allocations: 32 kB / 366.6 MB, free: 3.816 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001173/0.1375, allocations: 487.5 kB / 367.1 MB, free: 3.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000147/0.1377, allocations: 115.1 kB / 367.2 MB, free: 3.227 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004328/0.1381, allocations: 445.1 kB / 367.6 MB, free: 2.789 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001535/0.1397, allocations: 1.261 MB / 368.9 MB, free: 1.523 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1397, allocations: 0 / 368.9 MB, free: 1.523 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1397, allocations: 0 / 368.9 MB, free: 1.523 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.233e-05/0.1398, allocations: 0 / 368.9 MB, free: 1.523 MB / 302.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.002108/0.1419, allocations: 1.444 MB / 370.3 MB, free: 20 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.1419, allocations: 8.031 kB / 370.3 MB, free: 12 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1563/0.2982, allocations: 57.62 kB / 370.4 MB, free: 26.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002191/0.2984, allocations: 129.1 kB / 370.5 MB, free: 26.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/0.2997, allocations: 0.8443 MB / 371.4 MB, free: 25.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.046e-05/0.2998, allocations: 15.59 kB / 371.4 MB, free: 25.97 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.638e-05/0.2998, allocations: 26.83 kB / 371.4 MB, free: 25.97 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005417/0.3004, allocations: 308.2 kB / 371.7 MB, free: 25.92 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.3004, allocations: 4.781 kB / 371.7 MB, free: 25.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.064e-05/0.3004, allocations: 8.438 kB / 371.7 MB, free: 25.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.3005, allocations: 5.75 kB / 371.7 MB, free: 25.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004139/0.3009, allocations: 229.9 kB / 372 MB, free: 25.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001817/0.3027, allocations: 1.125 MB / 373.1 MB, free: 25.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003963/0.3031, allocations: 238.4 kB / 373.3 MB, free: 25.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004737/0.3036, allocations: 304.5 kB / 373.6 MB, free: 25.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000845/0.3045, allocations: 0.7539 MB / 374.4 MB, free: 24.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.3045, allocations: 40.2 kB / 374.4 MB, free: 24.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 2.003e-06/0.3045, allocations: 1.688 kB / 374.4 MB, free: 24.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.002816/0.3073, allocations: 1.547 MB / 376 MB, free: 23.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.3074, allocations: 113.8 kB / 376.1 MB, free: 23.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001251/0.3086, allocations: 0.9348 MB / 377 MB, free: 22.83 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.215e-05/0.3087, allocations: 32.45 kB / 377 MB, free: 22.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001969/0.3089, allocations: 361.5 kB / 377.4 MB, free: 22.51 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.988e-05/0.309, allocations: 136.7 kB / 377.5 MB, free: 22.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001612/0.3091, allocations: 114.3 kB / 377.6 MB, free: 22.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.964e-05/0.3092, allocations: 318 kB / 377.9 MB, free: 22.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002319/0.3094, allocations: 123.6 kB / 378.1 MB, free: 21.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002388/0.3097, allocations: 163.6 kB / 378.2 MB, free: 21.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001261/0.3109, allocations: 0.7328 MB / 379 MB, free: 21.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.3109, allocations: 0 / 379 MB, free: 21.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008861/0.3118, allocations: 0.5609 MB / 379.5 MB, free: 21.26 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.773e-05/0.3119, allocations: 39.62 kB / 379.6 MB, free: 21.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.943e-05/0.3119, allocations: 13.88 kB / 379.6 MB, free: 21.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002661/0.3122, allocations: 69.97 kB / 379.6 MB, free: 21.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003403/0.3126, allocations: 48.72 kB / 379.7 MB, free: 21.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002592/0.3152, allocations: 3.329 MB / 383 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005557/0.3158, allocations: 12.48 kB / 383 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.972e-05/0.3158, allocations: 20.83 kB / 383 MB, free: 17.94 MB / 302.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.0005337/0.3164, allocations: 262.8 kB / 383.3 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002584/0.3167, allocations: 121.5 kB / 383.4 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00199/0.3187, allocations: 0.6644 MB / 384.1 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.3187, allocations: 4.422 kB / 384.1 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.3187, allocations: 5.219 kB / 384.1 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.3187, allocations: 1.547 kB / 384.1 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00115/0.3199, allocations: 0.6179 MB / 384.7 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.901e-05/0.3199, allocations: 11.81 kB / 384.7 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002764/0.3202, allocations: 40.17 kB / 384.8 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002842/0.3205, allocations: 71.89 kB / 384.8 MB, free: 16.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.569e-05/0.3206, allocations: 16.44 kB / 384.9 MB, free: 16.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002653/0.3233, allocations: 3.328 MB / 388.2 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3233, allocations: 4.016 kB / 388.2 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001931/0.3252, allocations: 0.8517 MB / 389 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005347/0.3258, allocations: 275 kB / 389.3 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001967/0.326, allocations: 16.09 kB / 389.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000515/0.3265, allocations: 16.44 kB / 389.3 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001386/0.3267, allocations: 29.92 kB / 389.4 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.038e-05/0.3268, allocations: 18.67 kB / 389.4 MB, free: 13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001429/0.3282, allocations: 0.6279 MB / 390 MB, free: 12.74 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.3282, allocations: 1.156 kB / 390 MB, free: 12.74 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00142/0.3296, allocations: 225.5 kB / 390.2 MB, free: 12.71 MB / 302.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.002851/0.3325, allocations: 1.608 MB / 391.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00155/0.3341, allocations: 0.7834 MB / 392.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.3341, allocations: 0 / 392.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008787/0.335, allocations: 0.6211 MB / 393.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.336, allocations: 113.3 kB / 393.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009581/0.3456, allocations: 5.994 MB / 399.3 MB, free: 7.133 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/0.3461, allocations: 0.9954 MB / 400.3 MB, free: 6.305 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003453/0.3464, allocations: 98.7 kB / 400.4 MB, free: 6.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002535/0.3467, allocations: 289.6 kB / 400.7 MB, free: 6.004 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3467, allocations: 1.406 kB / 400.7 MB, free: 6.004 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0412/0.3879, allocations: 17.02 MB / 417.7 MB, free: 5.945 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.534/9.922, allocations: 8.703 kB / 417.8 MB, free: 5.941 MB / 318.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)