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.001126/0.001126, allocations: 107.4 kB / 16.51 MB, free: 6.707 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.001103/0.001103, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.359/1.359, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 47.45 kB / 300.1 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09278/0.09394, allocations: 49.45 MB / 349.5 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006329/0.1003, allocations: 5.186 MB / 354.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009247/0.1096, allocations: 6.769 MB / 361.5 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001004/0.1106, allocations: 39.69 kB / 361.5 MB, free: 8.699 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001653/0.1123, allocations: 449.6 kB / 361.9 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002219/0.1146, allocations: 0.6756 MB / 362.6 MB, free: 7.578 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001229/0.1159, allocations: 327 kB / 362.9 MB, free: 7.258 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003259/0.1191, allocations: 1.954 MB / 364.9 MB, free: 5.297 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000412/0.1196, allocations: 155.5 kB / 365 MB, free: 5.129 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006938/0.1203, allocations: 334.2 kB / 365.4 MB, free: 4.801 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005439/0.1208, allocations: 337.6 kB / 365.7 MB, free: 4.469 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001332/0.121, allocations: 20 kB / 365.7 MB, free: 4.449 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001579/0.1226, allocations: 487.4 kB / 366.2 MB, free: 3.973 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000164/0.1228, allocations: 95.27 kB / 366.3 MB, free: 3.879 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005762/0.1233, allocations: 437 kB / 366.7 MB, free: 3.449 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001998/0.1253, allocations: 1.241 MB / 368 MB, free: 2.203 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1254, allocations: 4 kB / 368 MB, free: 2.199 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1254, allocations: 0 / 368 MB, free: 2.199 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.16e-05/0.1254, allocations: 0 / 368 MB, free: 2.199 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.002633/0.1281, allocations: 1.44 MB / 369.4 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.1281, allocations: 8.031 kB / 369.4 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000102/0.1282, allocations: 66.47 kB / 369.5 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002176/0.1285, allocations: 134.3 kB / 369.6 MB, free: 492 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1704/0.2989, allocations: 0.8398 MB / 370.4 MB, free: 26.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.691e-05/0.2989, allocations: 17.12 kB / 370.5 MB, free: 26.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001601/0.2991, allocations: 25.83 kB / 370.5 MB, free: 26.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007653/0.2999, allocations: 305.1 kB / 370.8 MB, free: 26.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.2999, allocations: 1.422 kB / 370.8 MB, free: 26.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.684e-05/0.3, allocations: 6.938 kB / 370.8 MB, free: 26.47 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.3, allocations: 9.469 kB / 370.8 MB, free: 26.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005053/0.3005, allocations: 228.4 kB / 371 MB, free: 26.4 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002499/0.303, allocations: 1.125 MB / 372.1 MB, free: 25.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004552/0.3035, allocations: 242.1 kB / 372.4 MB, free: 25.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004972/0.304, allocations: 295.3 kB / 372.7 MB, free: 25.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008724/0.3049, allocations: 0.7526 MB / 373.4 MB, free: 24.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.142e-05/0.3049, allocations: 36.7 kB / 373.5 MB, free: 24.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 2.565e-06/0.3049, allocations: 0 / 373.5 MB, free: 24.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.003124/0.3081, allocations: 1.553 MB / 375 MB, free: 23.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.199e-05/0.3081, allocations: 112.9 kB / 375.1 MB, free: 23.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001413/0.3095, allocations: 0.9327 MB / 376.1 MB, free: 23.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.25e-05/0.3096, allocations: 31.14 kB / 376.1 MB, free: 23.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002376/0.3098, allocations: 354.3 kB / 376.4 MB, free: 22.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.3099, allocations: 132 kB / 376.6 MB, free: 22.85 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001987/0.3101, allocations: 114.8 kB / 376.7 MB, free: 22.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.75e-05/0.3102, allocations: 325.6 kB / 377 MB, free: 22.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002601/0.3105, allocations: 127.1 kB / 377.1 MB, free: 22.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002788/0.3108, allocations: 159.8 kB / 377.3 MB, free: 22.35 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001392/0.3122, allocations: 0.7276 MB / 378 MB, free: 21.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.3122, allocations: 4.469 kB / 378 MB, free: 21.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009838/0.3132, allocations: 0.5537 MB / 378.6 MB, free: 21.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.136e-05/0.3132, allocations: 37.09 kB / 378.6 MB, free: 21.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.434e-05/0.3133, allocations: 20.31 kB / 378.6 MB, free: 21.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002438/0.3135, allocations: 72.55 kB / 378.7 MB, free: 21.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002386/0.3138, allocations: 41.31 kB / 378.7 MB, free: 21.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001952/0.3157, allocations: 2.998 MB / 381.7 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003615/0.3161, allocations: 18.12 kB / 381.7 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.074e-05/0.3162, allocations: 16.44 kB / 381.8 MB, free: 18.72 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.0003816/0.3166, allocations: 260.4 kB / 382 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000195/0.3168, allocations: 128 kB / 382.1 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001352/0.3181, allocations: 0.6628 MB / 382.8 MB, free: 18.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/0.3182, allocations: 4.078 kB / 382.8 MB, free: 18.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.3182, allocations: 5.891 kB / 382.8 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.3182, allocations: 2.375 kB / 382.8 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009099/0.3191, allocations: 0.6123 MB / 383.4 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.122e-05/0.3191, allocations: 17.83 kB / 383.4 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001853/0.3193, allocations: 31.45 kB / 383.5 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001911/0.3195, allocations: 68.95 kB / 383.5 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.15e-05/0.3196, allocations: 18.5 kB / 383.6 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001809/0.3214, allocations: 3.002 MB / 386.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3214, allocations: 0 / 386.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001385/0.3228, allocations: 0.8537 MB / 387.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004416/0.3233, allocations: 271.4 kB / 387.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001701/0.3234, allocations: 10.97 kB / 387.7 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003307/0.3238, allocations: 12.47 kB / 387.7 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/0.3239, allocations: 34.7 kB / 387.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.807e-05/0.324, allocations: 19.78 kB / 387.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001025/0.325, allocations: 0.6277 MB / 388.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.325, allocations: 0.9688 kB / 388.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009567/0.326, allocations: 224.4 kB / 388.6 MB, free: 13.83 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.002217/0.3282, allocations: 1.601 MB / 390.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001133/0.3293, allocations: 0.7816 MB / 391 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3293, allocations: 0 / 391 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006205/0.33, allocations: 0.6211 MB / 391.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007063/0.3307, allocations: 118.2 kB / 391.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00943/0.3401, allocations: 6.284 MB / 398 MB, free: 7.984 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004357/0.3406, allocations: 1.006 MB / 399 MB, free: 7.199 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003607/0.341, allocations: 89.83 kB / 399.1 MB, free: 7.152 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002638/0.3412, allocations: 289.8 kB / 399.4 MB, free: 6.906 MB / 302.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3413, allocations: 0 / 399.4 MB, free: 6.906 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03394/0.3752, allocations: 16.57 MB / 416 MB, free: 7.535 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001902/0.3754, allocations: 222.1 kB / 416.2 MB, free: 7.277 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.131/2.506, allocations: 0 / 416.2 MB, free: 7.277 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)