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.0007453/0.0007453, allocations: 96.33 kB / 17.3 MB, free: 6.344 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.0008222/0.0008223, allocations: 175.6 kB / 18.21 MB, free: 5.527 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.297/1.297, allocations: 205.4 MB / 224.4 MB, free: 13.05 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.0004181/0.0004179, allocations: 12.88 kB / 281.5 MB, free: 3.316 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07987/0.0803, allocations: 47.58 MB / 329.1 MB, free: 3.66 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.004659/0.085, allocations: 4.796 MB / 333.9 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008377/0.0934, allocations: 6.595 MB / 340.4 MB, free: 8.219 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005665/0.094, allocations: 39.69 kB / 340.5 MB, free: 8.18 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001369/0.09538, allocations: 466.6 kB / 340.9 MB, free: 7.719 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002209/0.0976, allocations: 0.6677 MB / 341.6 MB, free: 7.047 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001126/0.09874, allocations: 327 kB / 341.9 MB, free: 6.727 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00255/0.1013, allocations: 1.942 MB / 343.9 MB, free: 4.777 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002701/0.1016, allocations: 147.5 kB / 344 MB, free: 4.621 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003866/0.102, allocations: 318.2 kB / 344.3 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003384/0.1023, allocations: 329.7 kB / 344.6 MB, free: 3.984 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.821e-05/0.1024, allocations: 16 kB / 344.7 MB, free: 3.969 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009542/0.1033, allocations: 451.6 kB / 345.1 MB, free: 3.527 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.221e-05/0.1035, allocations: 95.2 kB / 345.2 MB, free: 3.434 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000346/0.1038, allocations: 458.8 kB / 345.6 MB, free: 2.977 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001295/0.1051, allocations: 1.222 MB / 346.9 MB, free: 1.75 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1051, allocations: 8 kB / 346.9 MB, free: 1.742 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.1051, allocations: 0 / 346.9 MB, free: 1.742 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.379e-05/0.1052, allocations: 0 / 346.9 MB, free: 1.742 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.001745/0.1069, allocations: 1.285 MB / 348.2 MB, free: 408 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.107, allocations: 8.031 kB / 348.2 MB, free: 400 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.744e-05/0.107, allocations: 66.47 kB / 348.2 MB, free: 324 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.1072, allocations: 130.4 kB / 348.4 MB, free: 192 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009679/0.1082, allocations: 0.8465 MB / 349.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.19e-05/0.1082, allocations: 20.44 kB / 349.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.641e-05/0.1083, allocations: 20 kB / 349.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005241/0.1088, allocations: 310.6 kB / 349.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.1088, allocations: 0 / 349.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.245e-05/0.1089, allocations: 15.94 kB / 349.6 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.1089, allocations: 4 kB / 349.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003933/0.1093, allocations: 233.8 kB / 349.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001659/0.111, allocations: 1.126 MB / 350.9 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004129/0.1114, allocations: 250.3 kB / 351.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004827/0.1119, allocations: 306.5 kB / 351.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009425/0.1128, allocations: 0.7554 MB / 352.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.1129, allocations: 46.5 kB / 352.3 MB, free: 12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 1.583e-06/0.1129, allocations: 3.938 kB / 352.3 MB, free: 12 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.002918/0.1158, allocations: 1.58 MB / 353.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.609e-05/0.1159, allocations: 114.8 kB / 354 MB, free: 10.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009677/0.1169, allocations: 0.93 MB / 354.9 MB, free: 9.242 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.689e-05/0.1169, allocations: 33.7 kB / 354.9 MB, free: 9.203 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000276/0.1172, allocations: 361.5 kB / 355.3 MB, free: 8.848 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.881e-05/0.1173, allocations: 126.1 kB / 355.4 MB, free: 8.723 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.877e-05/0.1174, allocations: 29.7 kB / 355.4 MB, free: 8.688 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.1175, allocations: 326 kB / 355.8 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002535/0.1177, allocations: 128.6 kB / 355.9 MB, free: 8.234 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002619/0.118, allocations: 167.6 kB / 356 MB, free: 8.062 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/0.1194, allocations: 0.7566 MB / 356.8 MB, free: 7.277 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1194, allocations: 4 kB / 356.8 MB, free: 7.273 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000892/0.1203, allocations: 0.5582 MB / 357.4 MB, free: 6.695 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.467e-05/0.1204, allocations: 37.69 kB / 357.4 MB, free: 6.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.725e-05/0.1204, allocations: 20.03 kB / 357.4 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000226/0.1206, allocations: 69.62 kB / 357.5 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002265/0.1209, allocations: 47.97 kB / 357.5 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002262/0.1231, allocations: 3.001 MB / 360.5 MB, free: 3.234 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002454/0.1234, allocations: 12.03 kB / 360.5 MB, free: 3.223 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.801e-05/0.1235, allocations: 20 kB / 360.6 MB, free: 3.203 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.0003475/0.1238, allocations: 263.9 kB / 360.8 MB, free: 2.926 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000181/0.124, allocations: 118.5 kB / 360.9 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001289/0.1253, allocations: 0.6647 MB / 361.6 MB, free: 2.121 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.1253, allocations: 7.938 kB / 361.6 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1253, allocations: 4 kB / 361.6 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.1253, allocations: 0 / 361.6 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007292/0.1261, allocations: 0.6199 MB / 362.2 MB, free: 1.445 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.156e-05/0.1261, allocations: 12 kB / 362.2 MB, free: 1.434 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001889/0.1263, allocations: 35.92 kB / 362.3 MB, free: 1.398 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001807/0.1265, allocations: 69.67 kB / 362.3 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.934e-05/0.1265, allocations: 23.98 kB / 362.4 MB, free: 1.301 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002474/0.129, allocations: 2.993 MB / 365.4 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.129, allocations: 3.938 kB / 365.4 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001421/0.1305, allocations: 0.8706 MB / 366.2 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003612/0.1308, allocations: 275.5 kB / 366.5 MB, free: 12.85 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.858e-05/0.1309, allocations: 11.94 kB / 366.5 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002561/0.1312, allocations: 8 kB / 366.5 MB, free: 12.83 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.1313, allocations: 39.95 kB / 366.6 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.224e-05/0.1314, allocations: 12 kB / 366.6 MB, free: 12.78 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007549/0.1321, allocations: 0.6256 MB / 367.2 MB, free: 12.15 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1321, allocations: 4.062 kB / 367.2 MB, free: 12.15 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008655/0.133, allocations: 231.8 kB / 367.4 MB, free: 11.92 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.001982/0.135, allocations: 1.613 MB / 369 MB, free: 10.27 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.1361, allocations: 0.7883 MB / 369.8 MB, free: 9.418 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1361, allocations: 0 / 369.8 MB, free: 9.418 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006463/0.1368, allocations: 0.6285 MB / 370.5 MB, free: 8.727 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005478/0.1373, allocations: 104.8 kB / 370.6 MB, free: 8.625 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008709/0.146, allocations: 6.375 MB / 376.9 MB, free: 2.039 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005676/0.1466, allocations: 1.004 MB / 377.9 MB, free: 1.008 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003362/0.147, allocations: 93.64 kB / 378 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003926/0.1474, allocations: 283.3 kB / 378.3 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1474, allocations: 0 / 378.3 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1952/0.3426, allocations: 16.42 MB / 394.7 MB, free: 46.21 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001356/0.3428, allocations: 214.2 kB / 394.9 MB, free: 45.95 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.026/2.369, allocations: 4 kB / 394.9 MB, free: 45.95 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)