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.00113/0.00113, allocations: 91.11 kB / 16.95 MB, free: 6.383 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.001403/0.001403, allocations: 182.1 kB / 17.84 MB, free: 5.98 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.716/1.716, allocations: 205.4 MB / 224 MB, free: 13.15 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.0007194/0.0007196, allocations: 12 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1489, allocations: 47.58 MB / 328.4 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.005747/0.1547, allocations: 4.504 MB / 332.9 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009013/0.1638, allocations: 5.927 MB / 338.9 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001077/0.1649, allocations: 39.69 kB / 338.9 MB, free: 9.473 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001626/0.1666, allocations: 406.8 kB / 339.3 MB, free: 9.07 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003171/0.1698, allocations: 0.6445 MB / 340 MB, free: 8.422 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001433/0.1712, allocations: 303 kB / 340.3 MB, free: 8.125 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004227/0.1755, allocations: 1.868 MB / 342.1 MB, free: 6.25 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006139/0.1761, allocations: 143.5 kB / 342.3 MB, free: 6.098 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008966/0.177, allocations: 302.5 kB / 342.6 MB, free: 5.801 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008242/0.1779, allocations: 309.9 kB / 342.9 MB, free: 5.496 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002007/0.1781, allocations: 16 kB / 342.9 MB, free: 5.48 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00168/0.1798, allocations: 423.7 kB / 343.3 MB, free: 5.066 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002286/0.18, allocations: 91.25 kB / 343.4 MB, free: 4.977 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004851/0.1805, allocations: 217.1 kB / 343.6 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001608/0.1821, allocations: 0.9115 MB / 344.5 MB, free: 3.844 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1822, allocations: 0 / 344.5 MB, free: 3.844 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.05e-06/0.1822, allocations: 0 / 344.5 MB, free: 3.844 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.745e-05/0.1822, allocations: 7.938 kB / 344.5 MB, free: 3.836 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.002435/0.1847, allocations: 1.297 MB / 345.8 MB, free: 2.48 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/0.1847, allocations: 8.031 kB / 345.8 MB, free: 2.473 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001242/0.1849, allocations: 62.53 kB / 345.9 MB, free: 2.402 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002354/0.1851, allocations: 126.4 kB / 346 MB, free: 2.277 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001552/0.1867, allocations: 0.7969 MB / 346.8 MB, free: 1.43 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.24e-05/0.1867, allocations: 20.44 kB / 346.8 MB, free: 1.41 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.194e-05/0.1868, allocations: 24 kB / 346.8 MB, free: 1.387 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006373/0.1874, allocations: 310.6 kB / 347.1 MB, free: 1.07 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.1875, allocations: 4 kB / 347.1 MB, free: 1.066 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.367e-05/0.1875, allocations: 8 kB / 347.2 MB, free: 1.059 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.1875, allocations: 4 kB / 347.2 MB, free: 1.055 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004691/0.188, allocations: 233.8 kB / 347.4 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001908/0.1899, allocations: 1.138 MB / 348.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004093/0.1904, allocations: 246.4 kB / 348.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004887/0.1909, allocations: 300.7 kB / 349.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001029/0.1919, allocations: 0.7516 MB / 349.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.863e-05/0.1919, allocations: 42.5 kB / 349.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 3.367e-06/0.192, allocations: 4 kB / 349.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.003216/0.1952, allocations: 1.583 MB / 351.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.161e-05/0.1953, allocations: 110.8 kB / 351.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001292/0.1966, allocations: 0.926 MB / 352.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.577e-05/0.1967, allocations: 33.7 kB / 352.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003029/0.197, allocations: 353.7 kB / 352.8 MB, free: 11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.1971, allocations: 137.9 kB / 353 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.023e-05/0.1971, allocations: 4 kB / 353 MB, free: 10.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.1973, allocations: 322 kB / 353.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002435/0.1975, allocations: 124.6 kB / 353.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002539/0.1978, allocations: 159.8 kB / 353.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002998/0.1981, allocations: 175.4 kB / 353.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1981, allocations: 32 / 353.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009566/0.1991, allocations: 0.5635 MB / 354.3 MB, free: 9.496 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.173e-05/0.1991, allocations: 37.7 kB / 354.4 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.734e-05/0.1992, allocations: 20.02 kB / 354.4 MB, free: 9.434 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000257/0.1994, allocations: 65.69 kB / 354.4 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002299/0.1997, allocations: 47.91 kB / 354.5 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002863/0.2026, allocations: 2.989 MB / 357.5 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003737/0.2029, allocations: 16.02 kB / 357.5 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.399e-05/0.203, allocations: 20 kB / 357.5 MB, free: 6.016 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.0005177/0.2036, allocations: 263.8 kB / 357.8 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002237/0.2038, allocations: 122.5 kB / 357.9 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00156/0.2054, allocations: 0.6804 MB / 358.6 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.764e-06/0.2054, allocations: 4 kB / 358.6 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.2054, allocations: 3.938 kB / 358.6 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.2054, allocations: 0 / 358.6 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.2064, allocations: 0.6121 MB / 359.2 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.892e-05/0.2065, allocations: 19.98 kB / 359.2 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001762/0.2066, allocations: 35.92 kB / 359.2 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000213/0.2069, allocations: 69.67 kB / 359.3 MB, free: 4.121 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.103e-05/0.2069, allocations: 15.98 kB / 359.3 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002785/0.2097, allocations: 3 MB / 362.3 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.2097, allocations: 0 / 362.3 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001467/0.2112, allocations: 0.8667 MB / 363.2 MB, free: 15.94 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004819/0.2117, allocations: 275.5 kB / 363.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001517/0.2119, allocations: 4 kB / 363.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003079/0.2122, allocations: 19.98 kB / 363.5 MB, free: 15.63 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.2123, allocations: 31.92 kB / 363.5 MB, free: 15.6 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.075e-05/0.2124, allocations: 19.98 kB / 363.5 MB, free: 15.58 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008839/0.2132, allocations: 0.6139 MB / 364.1 MB, free: 14.96 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.2133, allocations: 0 / 364.1 MB, free: 14.96 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00102/0.2143, allocations: 227.9 kB / 364.4 MB, free: 14.74 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.002278/0.2166, allocations: 1.609 MB / 366 MB, free: 13.09 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001234/0.2178, allocations: 0.7884 MB / 366.8 MB, free: 12.24 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2178, allocations: 0 / 366.8 MB, free: 12.24 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006763/0.2185, allocations: 0.6208 MB / 367.4 MB, free: 11.56 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006153/0.2191, allocations: 100.8 kB / 367.5 MB, free: 11.46 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008734/0.2279, allocations: 4.704 MB / 372.2 MB, free: 6.598 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006507/0.2286, allocations: 0.9998 MB / 373.2 MB, free: 5.57 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003714/0.229, allocations: 93.64 kB / 373.3 MB, free: 5.477 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003353/0.2293, allocations: 283.3 kB / 373.6 MB, free: 5.199 MB / 318.1 MB Notification: Performance of SimCode: time 1.423e-06/0.2294, allocations: 0 / 373.6 MB, free: 5.199 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.24/0.4694, allocations: 16 MB / 389.6 MB, free: 48.92 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00016/0.4696, allocations: 203.1 kB / 389.8 MB, free: 48.68 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.224/2.693, allocations: 0 / 389.8 MB, free: 48.68 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: