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.001142/0.001142, allocations: 104.6 kB / 17.16 MB, free: 6.316 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.001127/0.001127, allocations: 190 kB / 18.07 MB, free: 5.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.331/1.331, allocations: 205.1 MB / 223.9 MB, free: 12.39 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.001221/0.001221, allocations: 51.92 kB / 280.1 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07644/0.07768, allocations: 46.62 MB / 326.7 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.004979/0.08269, allocations: 5.201 MB / 331.9 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006875/0.0896, allocations: 6.704 MB / 338.6 MB, free: 8.836 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005066/0.09013, allocations: 35.75 kB / 338.6 MB, free: 8.801 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001028/0.0912, allocations: 449.7 kB / 339.1 MB, free: 8.359 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00158/0.09279, allocations: 0.6716 MB / 339.7 MB, free: 7.684 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008397/0.09364, allocations: 327 kB / 340.1 MB, free: 7.363 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002331/0.09598, allocations: 1.938 MB / 342 MB, free: 5.418 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000228/0.09622, allocations: 151.5 kB / 342.1 MB, free: 5.258 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003407/0.09657, allocations: 326.2 kB / 342.5 MB, free: 4.938 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003016/0.09688, allocations: 337.7 kB / 342.8 MB, free: 4.605 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.513e-05/0.09694, allocations: 20 kB / 342.8 MB, free: 4.586 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008548/0.0978, allocations: 459.6 kB / 343.3 MB, free: 4.137 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.554e-05/0.0979, allocations: 103.2 kB / 343.4 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003089/0.09821, allocations: 437 kB / 343.8 MB, free: 3.605 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001022/0.09924, allocations: 1.234 MB / 345 MB, free: 2.367 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.09926, allocations: 3.984 kB / 345 MB, free: 2.363 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.09926, allocations: 0 / 345 MB, free: 2.363 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.827e-06/0.09928, allocations: 3.938 kB / 345 MB, free: 2.359 MB / 286.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.001573/0.1009, allocations: 1.436 MB / 346.5 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.1009, allocations: 12.03 kB / 346.5 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.085e-05/0.101, allocations: 62.48 kB / 346.5 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001214/0.1011, allocations: 130.4 kB / 346.7 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008922/0.102, allocations: 0.8505 MB / 347.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.102, allocations: 16.44 kB / 347.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.612e-05/0.1021, allocations: 24 kB / 347.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004799/0.1026, allocations: 302.7 kB / 347.9 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.1026, allocations: 7.938 kB / 347.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.809e-05/0.1026, allocations: 7.938 kB / 347.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.318e-06/0.1026, allocations: 8 kB / 347.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003624/0.103, allocations: 225.8 kB / 348.1 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001476/0.1045, allocations: 1.13 MB / 349.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003567/0.1048, allocations: 258.4 kB / 349.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004128/0.1053, allocations: 300.5 kB / 349.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007992/0.1061, allocations: 0.7438 MB / 350.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.04e-05/0.1061, allocations: 38.56 kB / 350.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 1.613e-06/0.1061, allocations: 0 / 350.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.002513/0.1086, allocations: 1.557 MB / 352.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/0.1087, allocations: 106.8 kB / 352.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000868/0.1096, allocations: 0.9378 MB / 353.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.1096, allocations: 33.7 kB / 353.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002305/0.1098, allocations: 357.5 kB / 353.5 MB, free: 9.359 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.299e-05/0.1099, allocations: 130 kB / 353.7 MB, free: 9.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.1101, allocations: 121.5 kB / 353.8 MB, free: 9.105 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.583e-05/0.1102, allocations: 322 kB / 354.1 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002193/0.1104, allocations: 124.6 kB / 354.2 MB, free: 8.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002331/0.1106, allocations: 159.6 kB / 354.4 MB, free: 8.496 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001211/0.1119, allocations: 0.7333 MB / 355.1 MB, free: 7.734 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.1119, allocations: 0 / 355.1 MB, free: 7.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007945/0.1127, allocations: 0.5542 MB / 355.7 MB, free: 7.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.921e-05/0.1127, allocations: 37.69 kB / 355.7 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.725e-05/0.1128, allocations: 16 kB / 355.7 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002036/0.113, allocations: 69.72 kB / 355.8 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002051/0.1132, allocations: 43.91 kB / 355.8 MB, free: 6.984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002003/0.1152, allocations: 3 MB / 358.8 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002396/0.1154, allocations: 16.03 kB / 358.8 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.729e-05/0.1155, allocations: 16 kB / 358.9 MB, free: 3.676 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.000325/0.1158, allocations: 267.8 kB / 359.1 MB, free: 3.395 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001224/0.116, allocations: 122.5 kB / 359.2 MB, free: 3.273 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001175/0.1171, allocations: 0.6647 MB / 359.9 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.1172, allocations: 7.938 kB / 359.9 MB, free: 2.578 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.1172, allocations: 0 / 359.9 MB, free: 2.578 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.1172, allocations: 0 / 359.9 MB, free: 2.578 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006019/0.1178, allocations: 0.616 MB / 360.5 MB, free: 1.918 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.102e-05/0.1178, allocations: 16 kB / 360.5 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001676/0.118, allocations: 31.92 kB / 360.6 MB, free: 1.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001675/0.1182, allocations: 73.67 kB / 360.6 MB, free: 1.793 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.275e-05/0.1182, allocations: 15.98 kB / 360.7 MB, free: 1.777 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001872/0.1201, allocations: 2.996 MB / 363.7 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1201, allocations: 4.031 kB / 363.7 MB, free: 14.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.1212, allocations: 0.851 MB / 364.5 MB, free: 13.63 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002712/0.1215, allocations: 271.5 kB / 364.8 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.008e-05/0.1216, allocations: 11.94 kB / 364.8 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002516/0.1218, allocations: 12 kB / 364.8 MB, free: 13.32 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.473e-05/0.1219, allocations: 35.95 kB / 364.8 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.382e-05/0.122, allocations: 12 kB / 364.8 MB, free: 13.28 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006003/0.1226, allocations: 0.6295 MB / 365.5 MB, free: 12.64 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1226, allocations: 0 / 365.5 MB, free: 12.64 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007859/0.1234, allocations: 223.9 kB / 365.7 MB, free: 12.43 MB / 318.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.001704/0.1251, allocations: 1.598 MB / 367.3 MB, free: 10.79 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009248/0.126, allocations: 0.7883 MB / 368.1 MB, free: 9.938 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.126, allocations: 0 / 368.1 MB, free: 9.938 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005825/0.1266, allocations: 0.6168 MB / 368.7 MB, free: 9.258 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004894/0.1271, allocations: 96.81 kB / 368.8 MB, free: 9.164 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007877/0.135, allocations: 6.306 MB / 375.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004839/0.1355, allocations: 0.9998 MB / 376.1 MB, free: 1.617 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003021/0.1358, allocations: 93.64 kB / 376.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002888/0.1361, allocations: 283.3 kB / 376.5 MB, free: 1.246 MB / 318.1 MB Notification: Performance of SimCode: time 1.012e-06/0.1361, allocations: 0 / 376.5 MB, free: 1.246 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.682/1.819, allocations: 16.58 MB / 393 MB, free: 47.96 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001295/1.819, allocations: 212.6 kB / 393.2 MB, free: 47.71 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.574/4.393, allocations: 0 / 393.2 MB, free: 47.71 MB / 318.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)