Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_0_0_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.001358/0.001358, allocations: 93.88 kB / 16.3 MB, free: 6.457 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.001393/0.001393, allocations: 183.5 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003505/0.0003508, allocations: 6.469 kB / 300.8 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1167, allocations: 50.42 MB / 351.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.004912/0.1217, allocations: 4.199 MB / 355.4 MB, free: 7.379 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008365/0.1301, allocations: 5.705 MB / 361.1 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007493/0.1308, allocations: 35.75 kB / 361.2 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001226/0.1321, allocations: 418 kB / 361.6 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002096/0.1342, allocations: 0.7086 MB / 362.3 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009246/0.1351, allocations: 311.1 kB / 362.6 MB, free: 204 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002898/0.138, allocations: 1.844 MB / 364.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002903/0.1383, allocations: 143.5 kB / 364.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000443/0.1388, allocations: 294.5 kB / 364.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003546/0.1392, allocations: 322 kB / 365.2 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.03e-05/0.1392, allocations: 16 kB / 365.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009944/0.1402, allocations: 443.5 kB / 365.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.977e-05/0.1403, allocations: 87.33 kB / 365.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001737/0.1405, allocations: 217.1 kB / 365.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009359/0.1414, allocations: 0.9037 MB / 366.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.1415, allocations: 0 / 366.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1415, allocations: 4 kB / 366.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.1415, allocations: 0 / 366.8 MB, free: 11.93 MB / 302.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.001845/0.1433, allocations: 1.293 MB / 368.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.1434, allocations: 12.02 kB / 368.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.814e-05/0.1435, allocations: 62.55 kB / 368.2 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001387/0.1436, allocations: 126.4 kB / 368.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001171/0.1448, allocations: 0.8085 MB / 369.1 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/0.1448, allocations: 20.39 kB / 369.1 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.749e-05/0.1449, allocations: 27.91 kB / 369.2 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005397/0.1455, allocations: 314.6 kB / 369.5 MB, free: 9.145 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.1455, allocations: 4 kB / 369.5 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.269e-05/0.1455, allocations: 4 kB / 369.5 MB, free: 9.137 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.1455, allocations: 8 kB / 369.5 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000414/0.146, allocations: 225.8 kB / 369.7 MB, free: 8.906 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/0.1478, allocations: 1.149 MB / 370.9 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003862/0.1482, allocations: 240 kB / 371.1 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009701/0.1491, allocations: 0.7555 MB / 371.8 MB, free: 6.562 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.1492, allocations: 38.56 kB / 371.9 MB, free: 6.516 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 1.894e-06/0.1492, allocations: 0 / 371.9 MB, free: 6.516 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.003026/0.1522, allocations: 1.977 MB / 373.9 MB, free: 4.348 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.182e-05/0.1523, allocations: 106.8 kB / 374 MB, free: 4.219 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001037/0.1533, allocations: 0.9184 MB / 374.9 MB, free: 3.293 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.596e-05/0.1534, allocations: 29.7 kB / 374.9 MB, free: 3.258 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002722/0.1537, allocations: 365.6 kB / 375.3 MB, free: 2.898 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.1538, allocations: 137.9 kB / 375.4 MB, free: 2.762 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.949e-05/0.1538, allocations: 4 kB / 375.4 MB, free: 2.758 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.1539, allocations: 325.9 kB / 375.7 MB, free: 2.434 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002382/0.1542, allocations: 120.6 kB / 375.8 MB, free: 2.309 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002662/0.1544, allocations: 171.6 kB / 376 MB, free: 2.133 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002769/0.1547, allocations: 171 kB / 376.2 MB, free: 1.961 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.1547, allocations: 0 / 376.2 MB, free: 1.961 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008646/0.1556, allocations: 0.56 MB / 376.7 MB, free: 1.383 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.26e-05/0.1557, allocations: 41.69 kB / 376.8 MB, free: 1.336 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.027e-05/0.1557, allocations: 12 kB / 376.8 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002302/0.1559, allocations: 81.64 kB / 376.9 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002388/0.1562, allocations: 47.91 kB / 376.9 MB, free: 1.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002383/0.1586, allocations: 3.005 MB / 379.9 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003074/0.1589, allocations: 16.02 kB / 379.9 MB, free: 13.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.126e-05/0.159, allocations: 20 kB / 380 MB, free: 13.88 MB / 318.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.0004049/0.1594, allocations: 259.9 kB / 380.2 MB, free: 13.61 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001359/0.1595, allocations: 126.5 kB / 380.3 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001345/0.1609, allocations: 0.6765 MB / 381 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.1609, allocations: 7.953 kB / 381 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.1609, allocations: 0 / 381 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.1609, allocations: 4 kB / 381 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006877/0.1616, allocations: 0.6121 MB / 381.6 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-05/0.1616, allocations: 16 kB / 381.7 MB, free: 12.1 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001854/0.1618, allocations: 39.91 kB / 381.7 MB, free: 12.06 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001856/0.162, allocations: 73.67 kB / 381.8 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.262e-05/0.1621, allocations: 12 kB / 381.8 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002171/0.1642, allocations: 3.005 MB / 384.8 MB, free: 8.703 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1643, allocations: 0 / 384.8 MB, free: 8.703 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001265/0.1655, allocations: 0.8706 MB / 385.7 MB, free: 7.805 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003858/0.1659, allocations: 279.4 kB / 385.9 MB, free: 7.512 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.567e-05/0.166, allocations: 8 kB / 385.9 MB, free: 7.504 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002847/0.1663, allocations: 12 kB / 385.9 MB, free: 7.492 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.1664, allocations: 35.95 kB / 386 MB, free: 7.457 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.012e-05/0.1665, allocations: 16 kB / 386 MB, free: 7.441 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007062/0.1672, allocations: 0.6178 MB / 386.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1672, allocations: 0 / 386.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000814/0.168, allocations: 227.9 kB / 386.8 MB, free: 6.598 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.00194/0.17, allocations: 1.597 MB / 388.4 MB, free: 4.957 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001168/0.1712, allocations: 0.7885 MB / 389.2 MB, free: 4.105 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1712, allocations: 0 / 389.2 MB, free: 4.105 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006567/0.1718, allocations: 0.6166 MB / 389.8 MB, free: 3.426 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004576/0.1723, allocations: 112.7 kB / 389.9 MB, free: 3.316 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00321/0.1755, allocations: 2.456 MB / 392.4 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005846/0.1761, allocations: 1.027 MB / 393.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000343/0.1765, allocations: 93.64 kB / 393.5 MB, free: 15.65 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003079/0.1768, allocations: 287.3 kB / 393.8 MB, free: 15.37 MB / 334.1 MB Notification: Performance of SimCode: time 6.42e-07/0.1768, allocations: 0 / 393.8 MB, free: 15.37 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03197/0.2088, allocations: 15.24 MB / 409 MB, free: 312 kB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002027/0.209, allocations: 198.9 kB / 409.2 MB, free: 64 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.01/2.219, allocations: 0 / 409.2 MB, free: 64 kB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)