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.001039/0.001039, allocations: 103.8 kB / 17.58 MB, free: 5.426 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.001118/0.001118, allocations: 192.2 kB / 18.51 MB, free: 4.508 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.376/1.376, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001276/0.001276, allocations: 52.14 kB / 280.7 MB, free: 3.094 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08688/0.08816, allocations: 46.64 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006388/0.0946, allocations: 5.202 MB / 332.6 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008347/0.103, allocations: 6.578 MB / 339.2 MB, free: 8.547 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007612/0.1038, allocations: 31.75 kB / 339.2 MB, free: 8.516 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001389/0.1052, allocations: 0.493 MB / 339.7 MB, free: 8.02 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00227/0.1075, allocations: 0.8107 MB / 340.5 MB, free: 7.203 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001229/0.1088, allocations: 430.4 kB / 340.9 MB, free: 6.781 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002873/0.1116, allocations: 1.978 MB / 342.9 MB, free: 4.797 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003389/0.112, allocations: 171 kB / 343.1 MB, free: 4.617 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005419/0.1126, allocations: 330.3 kB / 343.4 MB, free: 4.293 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000476/0.113, allocations: 345.7 kB / 343.7 MB, free: 3.953 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.791e-05/0.1132, allocations: 28 kB / 343.7 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00113/0.1143, allocations: 467.6 kB / 344.2 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001221/0.1144, allocations: 115.2 kB / 344.3 MB, free: 3.355 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004421/0.1149, allocations: 449.1 kB / 344.8 MB, free: 2.914 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001524/0.1164, allocations: 1.257 MB / 346 MB, free: 1.652 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.1164, allocations: 0 / 346 MB, free: 1.652 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1164, allocations: 0 / 346 MB, free: 1.652 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.015e-05/0.1165, allocations: 0 / 346 MB, free: 1.652 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.002001/0.1185, allocations: 1.444 MB / 347.5 MB, free: 152 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.1185, allocations: 8.031 kB / 347.5 MB, free: 144 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.572e-05/0.1186, allocations: 62.48 kB / 347.5 MB, free: 72 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001859/0.1188, allocations: 130.6 kB / 347.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001032/0.1198, allocations: 0.8464 MB / 348.5 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.904e-05/0.1199, allocations: 12.44 kB / 348.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.353e-05/0.1199, allocations: 28 kB / 348.5 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005088/0.1204, allocations: 306.6 kB / 348.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.1205, allocations: 3.938 kB / 348.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.371e-05/0.1205, allocations: 15.94 kB / 348.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.178e-06/0.1205, allocations: 4 kB / 348.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003891/0.1209, allocations: 229.8 kB / 349.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001743/0.1227, allocations: 1.13 MB / 350.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003935/0.1231, allocations: 238.5 kB / 350.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004842/0.1236, allocations: 296.5 kB / 350.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001007/0.1246, allocations: 0.7594 MB / 351.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.07e-05/0.1246, allocations: 34.56 kB / 351.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 2.064e-06/0.1247, allocations: 0 / 351.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.002918/0.1276, allocations: 1.553 MB / 353.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.09e-05/0.1277, allocations: 110.8 kB / 353.2 MB, free: 9.996 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001091/0.1288, allocations: 0.93 MB / 354.1 MB, free: 9.059 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.238e-05/0.1288, allocations: 33.7 kB / 354.2 MB, free: 9.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002682/0.1291, allocations: 365.5 kB / 354.5 MB, free: 8.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.931e-05/0.1292, allocations: 134 kB / 354.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/0.1294, allocations: 129.3 kB / 354.8 MB, free: 8.395 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.188e-05/0.1295, allocations: 321.9 kB / 355.1 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002356/0.1297, allocations: 120.6 kB / 355.2 MB, free: 7.953 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002732/0.13, allocations: 163.6 kB / 355.4 MB, free: 7.785 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00134/0.1314, allocations: 0.7295 MB / 356.1 MB, free: 7.027 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1314, allocations: 0 / 356.1 MB, free: 7.027 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009014/0.1323, allocations: 0.5541 MB / 356.6 MB, free: 6.453 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.291e-05/0.1323, allocations: 41.69 kB / 356.7 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.93e-05/0.1324, allocations: 12 kB / 356.7 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002191/0.1326, allocations: 77.7 kB / 356.8 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002398/0.1329, allocations: 51.91 kB / 356.8 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002325/0.1352, allocations: 3.324 MB / 360.1 MB, free: 2.652 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003192/0.1355, allocations: 8.031 kB / 360.2 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.719e-05/0.1356, allocations: 23.98 kB / 360.2 MB, free: 2.621 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.0003784/0.136, allocations: 271.8 kB / 360.4 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.1361, allocations: 114.6 kB / 360.6 MB, free: 2.223 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001283/0.1374, allocations: 0.6647 MB / 361.2 MB, free: 1.535 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.1374, allocations: 0 / 361.2 MB, free: 1.535 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.1375, allocations: 4 kB / 361.2 MB, free: 1.531 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.1375, allocations: 3.984 kB / 361.2 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006752/0.1381, allocations: 0.6121 MB / 361.8 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-05/0.1382, allocations: 19.94 kB / 361.9 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001816/0.1384, allocations: 35.97 kB / 361.9 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001791/0.1386, allocations: 73.67 kB / 362 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.485e-05/0.1386, allocations: 15.98 kB / 362 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00227/0.1409, allocations: 3.324 MB / 365.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.1409, allocations: 3.984 kB / 365.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001228/0.1421, allocations: 0.8626 MB / 366.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003451/0.1425, allocations: 275.5 kB / 366.4 MB, free: 11.94 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.1426, allocations: 16 kB / 366.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002726/0.1429, allocations: 15.94 kB / 366.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.978e-05/0.143, allocations: 31.95 kB / 366.5 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.925e-05/0.143, allocations: 20.03 kB / 366.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007041/0.1437, allocations: 0.6295 MB / 367.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1437, allocations: 0 / 367.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000774/0.1445, allocations: 223.8 kB / 367.4 MB, free: 11.01 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.001939/0.1465, allocations: 1.593 MB / 369 MB, free: 9.375 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.1476, allocations: 0.7959 MB / 369.8 MB, free: 8.516 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1476, allocations: 0 / 369.8 MB, free: 8.516 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006456/0.1483, allocations: 0.6205 MB / 370.4 MB, free: 7.832 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005389/0.1488, allocations: 104.8 kB / 370.5 MB, free: 7.73 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007242/0.1561, allocations: 5.992 MB / 376.5 MB, free: 1.527 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005175/0.1566, allocations: 1 MB / 377.5 MB, free: 0.5 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003217/0.157, allocations: 93.64 kB / 377.6 MB, free: 416 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00028/0.1573, allocations: 283.3 kB / 377.8 MB, free: 132 kB / 318.1 MB Notification: Performance of SimCode: time 7.81e-07/0.1573, allocations: 0 / 377.8 MB, free: 132 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1747/0.332, allocations: 17.01 MB / 394.9 MB, free: 48.16 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.282/9.614, allocations: 14.28 kB / 394.9 MB, free: 48.16 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)