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.0008877/0.0008877, allocations: 96.52 kB / 16.94 MB, free: 5.98 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.0008289/0.0008289, allocations: 180 kB / 17.82 MB, free: 5.652 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.338/1.338, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004943/0.0004945, allocations: 12 kB / 280.8 MB, free: 3.66 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09263/0.09313, allocations: 47.59 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.004191/0.09736, allocations: 4.194 MB / 332.6 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006829/0.1042, allocations: 5.675 MB / 338.3 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005224/0.1048, allocations: 35.75 kB / 338.3 MB, free: 10.06 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001168/0.106, allocations: 402 kB / 338.7 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001681/0.1077, allocations: 0.7125 MB / 339.4 MB, free: 8.949 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009338/0.1086, allocations: 311.2 kB / 339.7 MB, free: 8.645 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0028/0.1114, allocations: 1.829 MB / 341.6 MB, free: 6.812 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002957/0.1117, allocations: 151.5 kB / 341.7 MB, free: 6.652 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005007/0.1122, allocations: 290.5 kB / 342 MB, free: 6.367 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003952/0.1126, allocations: 306 kB / 342.3 MB, free: 6.066 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.351e-05/0.1127, allocations: 20 kB / 342.3 MB, free: 6.047 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001016/0.1138, allocations: 435.5 kB / 342.7 MB, free: 5.621 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001008/0.1139, allocations: 83.33 kB / 342.8 MB, free: 5.539 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001921/0.1141, allocations: 217.1 kB / 343 MB, free: 5.32 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009673/0.115, allocations: 0.9077 MB / 343.9 MB, free: 4.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1151, allocations: 0 / 343.9 MB, free: 4.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1151, allocations: 0 / 343.9 MB, free: 4.41 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.498e-05/0.1151, allocations: 0 / 343.9 MB, free: 4.41 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.001784/0.1169, allocations: 1.293 MB / 345.2 MB, free: 3.055 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.1169, allocations: 12.03 kB / 345.3 MB, free: 3.043 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.107e-05/0.117, allocations: 62.53 kB / 345.3 MB, free: 2.973 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.1172, allocations: 126.4 kB / 345.4 MB, free: 2.848 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001118/0.1183, allocations: 0.8046 MB / 346.2 MB, free: 1.992 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.81e-05/0.1183, allocations: 16.38 kB / 346.3 MB, free: 1.977 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.494e-05/0.1184, allocations: 24 kB / 346.3 MB, free: 1.953 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005066/0.1189, allocations: 310.6 kB / 346.6 MB, free: 1.641 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.1189, allocations: 0 / 346.6 MB, free: 1.641 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.251e-05/0.1189, allocations: 15.94 kB / 346.6 MB, free: 1.625 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.119, allocations: 4 kB / 346.6 MB, free: 1.621 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003907/0.1194, allocations: 225.8 kB / 346.8 MB, free: 1.398 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00177/0.1211, allocations: 1.153 MB / 348 MB, free: 200 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003965/0.1215, allocations: 242.6 kB / 348.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009772/0.1225, allocations: 0.7555 MB / 349 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.354e-05/0.1226, allocations: 38.5 kB / 349 MB, free: 15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 2.535e-06/0.1226, allocations: 0 / 349 MB, free: 15 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.003142/0.1257, allocations: 1.979 MB / 351 MB, free: 12.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.605e-05/0.1258, allocations: 118.8 kB / 351.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/0.1269, allocations: 0.9183 MB / 352 MB, free: 11.76 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.881e-05/0.1269, allocations: 33.7 kB / 352.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002978/0.1272, allocations: 361.5 kB / 352.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.938e-05/0.1273, allocations: 126 kB / 352.5 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.122e-05/0.1273, allocations: 8 kB / 352.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.1275, allocations: 326 kB / 352.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002243/0.1277, allocations: 120.6 kB / 353 MB, free: 10.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000252/0.128, allocations: 163.8 kB / 353.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003115/0.1283, allocations: 179.4 kB / 353.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.1283, allocations: 0 / 353.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008593/0.1292, allocations: 0.5557 MB / 353.9 MB, free: 9.867 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.307e-05/0.1292, allocations: 41.69 kB / 353.9 MB, free: 9.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.036e-05/0.1293, allocations: 12 kB / 353.9 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002234/0.1295, allocations: 65.69 kB / 354 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002281/0.1298, allocations: 51.91 kB / 354 MB, free: 9.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002413/0.1322, allocations: 3 MB / 357 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002683/0.1325, allocations: 20.47 kB / 357.1 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.506e-05/0.1325, allocations: 19.98 kB / 357.1 MB, free: 6.371 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004066/0.1329, allocations: 267.7 kB / 357.3 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.1331, allocations: 126.5 kB / 357.5 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00134/0.1344, allocations: 0.6803 MB / 358.1 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.1345, allocations: 8 kB / 358.1 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.1345, allocations: 0 / 358.1 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.1345, allocations: 3.984 kB / 358.2 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007047/0.1352, allocations: 0.6121 MB / 358.8 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.189e-05/0.1352, allocations: 15.94 kB / 358.8 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001746/0.1354, allocations: 35.98 kB / 358.8 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001792/0.1356, allocations: 73.67 kB / 358.9 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.281e-05/0.1357, allocations: 15.98 kB / 358.9 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002308/0.138, allocations: 3.016 MB / 361.9 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.138, allocations: 0 / 361.9 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/0.1392, allocations: 0.855 MB / 362.8 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004049/0.1396, allocations: 275.5 kB / 363 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.094e-05/0.1397, allocations: 8 kB / 363 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000277/0.14, allocations: 20.05 kB / 363.1 MB, free: 15.96 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.992e-05/0.1401, allocations: 31.92 kB / 363.1 MB, free: 15.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.311e-05/0.1402, allocations: 23.98 kB / 363.1 MB, free: 15.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007361/0.1409, allocations: 0.6139 MB / 363.7 MB, free: 15.29 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1409, allocations: 0 / 363.7 MB, free: 15.29 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000797/0.1417, allocations: 219.9 kB / 364 MB, free: 15.08 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001997/0.1437, allocations: 1.624 MB / 365.6 MB, free: 13.42 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001127/0.1449, allocations: 0.7846 MB / 366.4 MB, free: 12.57 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1449, allocations: 3.938 kB / 366.4 MB, free: 12.57 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006415/0.1455, allocations: 0.6178 MB / 367 MB, free: 11.89 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003806/0.1459, allocations: 96.8 kB / 367.1 MB, free: 11.79 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003034/0.149, allocations: 2.449 MB / 369.5 MB, free: 9.281 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005609/0.1495, allocations: 1.019 MB / 370.5 MB, free: 8.234 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003111/0.1499, allocations: 93.64 kB / 370.6 MB, free: 8.141 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003078/0.1502, allocations: 295.3 kB / 370.9 MB, free: 7.852 MB / 318.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1502, allocations: 0 / 370.9 MB, free: 7.852 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1919/0.3421, allocations: 15.21 MB / 386.1 MB, free: 50.67 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001603/0.3423, allocations: 191.8 kB / 386.3 MB, free: 50.43 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.002/2.345, allocations: 0 / 386.3 MB, free: 50.43 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/linux/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) Environment - environmentSimulation: