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.001591/0.00159, allocations: 112.7 kB / 17.28 MB, free: 6.199 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.001602/0.001603, allocations: 189.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.027/2.027, allocations: 205.1 MB / 224.1 MB, free: 12.36 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.001514/0.001515, allocations: 55.86 kB / 280.2 MB, free: 3.387 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1802/0.1817, allocations: 46.63 MB / 326.9 MB, free: 4.684 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.008556/0.1903, allocations: 5.193 MB / 332.1 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01237/0.2028, allocations: 6.501 MB / 338.6 MB, free: 8.934 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001046/0.2039, allocations: 43.69 kB / 338.6 MB, free: 8.891 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001701/0.2057, allocations: 445.7 kB / 339 MB, free: 8.453 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002905/0.2086, allocations: 0.6912 MB / 339.7 MB, free: 7.758 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002025/0.2106, allocations: 379 kB / 340.1 MB, free: 7.387 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003933/0.2146, allocations: 2.008 MB / 342.1 MB, free: 5.371 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004414/0.2151, allocations: 159 kB / 342.3 MB, free: 5.203 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007218/0.2158, allocations: 350.2 kB / 342.6 MB, free: 4.859 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000458/0.2163, allocations: 337.7 kB / 342.9 MB, free: 4.527 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.74e-05/0.2163, allocations: 28 kB / 343 MB, free: 4.5 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001437/0.2178, allocations: 471.6 kB / 343.4 MB, free: 4.039 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002005/0.218, allocations: 111.2 kB / 343.5 MB, free: 3.93 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004903/0.2185, allocations: 441.1 kB / 344 MB, free: 3.496 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001732/0.2202, allocations: 1.269 MB / 345.2 MB, free: 2.223 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.2203, allocations: 4 kB / 345.2 MB, free: 2.219 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.2203, allocations: 4 kB / 345.2 MB, free: 2.215 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.768e-05/0.2203, allocations: 0 / 345.2 MB, free: 2.215 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.002337/0.2227, allocations: 1.44 MB / 346.7 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.572e-05/0.2227, allocations: 12.03 kB / 346.7 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.726e-05/0.2228, allocations: 62.47 kB / 346.8 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001734/0.223, allocations: 126.4 kB / 346.9 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001364/0.2244, allocations: 0.8464 MB / 347.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.2244, allocations: 16.44 kB / 347.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.611e-05/0.2245, allocations: 24 kB / 347.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006594/0.2252, allocations: 310.6 kB / 348.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.2252, allocations: 0 / 348.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.254e-05/0.2252, allocations: 15.94 kB / 348.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.57e-05/0.2253, allocations: 4 kB / 348.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004799/0.2257, allocations: 221.7 kB / 348.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002028/0.2278, allocations: 1.13 MB / 349.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005001/0.2283, allocations: 254.4 kB / 349.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005499/0.2289, allocations: 296.5 kB / 350 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001303/0.2302, allocations: 0.7516 MB / 350.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.158e-05/0.2302, allocations: 38.56 kB / 350.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 1.783e-06/0.2302, allocations: 0 / 350.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.003403/0.2337, allocations: 1.553 MB / 352.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.2338, allocations: 118.8 kB / 352.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001236/0.235, allocations: 0.9339 MB / 353.4 MB, free: 9.609 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.309e-05/0.2351, allocations: 29.7 kB / 353.4 MB, free: 9.574 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000371/0.2355, allocations: 353.6 kB / 353.7 MB, free: 9.227 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001643/0.2356, allocations: 134 kB / 353.9 MB, free: 9.094 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002233/0.2359, allocations: 125.5 kB / 354 MB, free: 8.965 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002561/0.2361, allocations: 318 kB / 354.3 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002822/0.2364, allocations: 124.6 kB / 354.4 MB, free: 8.523 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003274/0.2368, allocations: 167.5 kB / 354.6 MB, free: 8.352 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001594/0.2384, allocations: 0.7256 MB / 355.3 MB, free: 7.598 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.2384, allocations: 0 / 355.3 MB, free: 7.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00102/0.2394, allocations: 0.5619 MB / 355.9 MB, free: 7.016 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.229e-05/0.2395, allocations: 37.69 kB / 355.9 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.431e-05/0.2395, allocations: 16 kB / 355.9 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002765/0.2398, allocations: 65.69 kB / 356 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002374/0.24, allocations: 43.91 kB / 356 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003479/0.2435, allocations: 3.339 MB / 359.4 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002817/0.2438, allocations: 16.02 kB / 359.4 MB, free: 3.203 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.826e-05/0.2439, allocations: 16 kB / 359.4 MB, free: 3.188 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.0004589/0.2444, allocations: 275.7 kB / 359.7 MB, free: 2.898 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001739/0.2446, allocations: 118.6 kB / 359.8 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001481/0.2461, allocations: 0.6607 MB / 360.5 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.2461, allocations: 4 kB / 360.5 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2461, allocations: 0 / 360.5 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.2461, allocations: 0 / 360.5 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008219/0.2469, allocations: 0.6199 MB / 361.1 MB, free: 1.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.644e-05/0.247, allocations: 15.98 kB / 361.1 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001861/0.2471, allocations: 31.92 kB / 361.1 MB, free: 1.383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001901/0.2473, allocations: 69.67 kB / 361.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.708e-05/0.2474, allocations: 27.98 kB / 361.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003385/0.2508, allocations: 3.324 MB / 364.5 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.2508, allocations: 0 / 364.5 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001488/0.2523, allocations: 0.8588 MB / 365.4 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004018/0.2527, allocations: 275.5 kB / 365.7 MB, free: 12.51 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.702e-05/0.2528, allocations: 7.938 kB / 365.7 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000258/0.2531, allocations: 19.92 kB / 365.7 MB, free: 12.48 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.511e-05/0.2532, allocations: 32.03 kB / 365.7 MB, free: 12.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.56e-05/0.2532, allocations: 19.98 kB / 365.8 MB, free: 12.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009795/0.2542, allocations: 0.6256 MB / 366.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2542, allocations: 0 / 366.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008967/0.2551, allocations: 223.9 kB / 366.6 MB, free: 11.58 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.002966/0.2581, allocations: 1.602 MB / 368.2 MB, free: 9.941 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001569/0.2597, allocations: 0.7959 MB / 369 MB, free: 9.082 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.2597, allocations: 0 / 369 MB, free: 9.082 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008791/0.2606, allocations: 0.6246 MB / 369.6 MB, free: 8.395 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000638/0.2613, allocations: 107.9 kB / 369.7 MB, free: 8.293 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01156/0.2728, allocations: 6.278 MB / 376 MB, free: 1.801 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001026/0.2739, allocations: 1.004 MB / 377 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004573/0.2744, allocations: 97.62 kB / 377.1 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004032/0.2748, allocations: 283.3 kB / 377.4 MB, free: 404 kB / 318.1 MB Notification: Performance of SimCode: time 1.863e-06/0.2748, allocations: 3.938 kB / 377.4 MB, free: 400 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3273/0.6021, allocations: 16.89 MB / 394.3 MB, free: 48.77 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003267/0.6025, allocations: 219.3 kB / 394.5 MB, free: 48.51 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.835/3.437, allocations: 4 kB / 394.5 MB, free: 48.5 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)