Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.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.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",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.001442/0.001442, allocations: 96.86 kB / 17.58 MB, free: 5.418 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.00168/0.00168, allocations: 192 kB / 18.51 MB, free: 4.508 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.454/1.454, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.002096/0.002096, allocations: 56.39 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.109, allocations: 46.62 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.008183/0.1172, allocations: 6.258 MB / 333.6 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004346/0.1216, allocations: 2.177 MB / 335.8 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008844/0.1226, allocations: 19.94 kB / 335.8 MB, free: 11.86 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002064/0.1247, allocations: 0.7539 MB / 336.6 MB, free: 11.11 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002234/0.1269, allocations: 0.7883 MB / 337.4 MB, free: 10.31 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001318/0.1283, allocations: 0.4909 MB / 337.9 MB, free: 9.82 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00175/0.13, allocations: 1.187 MB / 339.1 MB, free: 8.629 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001594/0.1316, allocations: 0.8354 MB / 339.9 MB, free: 7.773 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001058/0.1327, allocations: 466.3 kB / 340.4 MB, free: 7.316 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001028/0.1338, allocations: 0.5484 MB / 340.9 MB, free: 6.766 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002539/0.134, allocations: 108 kB / 341 MB, free: 6.66 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007035/0.1347, allocations: 271.8 kB / 341.3 MB, free: 6.395 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002689/0.135, allocations: 255.1 kB / 341.5 MB, free: 6.145 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006925/0.1357, allocations: 0.5519 MB / 342.1 MB, free: 5.59 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001798/0.1375, allocations: 1.437 MB / 343.5 MB, free: 4.148 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.1375, allocations: 4 kB / 343.5 MB, free: 4.145 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1376, allocations: 0 / 343.5 MB, free: 4.145 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.424e-05/0.1376, allocations: 0 / 343.5 MB, free: 4.145 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.003361/0.141, allocations: 1.44 MB / 345 MB, free: 2.648 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.141, allocations: 12.03 kB / 345 MB, free: 2.637 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002666/0.1413, allocations: 158.6 kB / 345.1 MB, free: 2.473 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003049/0.1444, allocations: 483.1 kB / 345.6 MB, free: 2 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000896/0.1453, allocations: 0.5618 MB / 346.2 MB, free: 1.395 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.864e-05/0.1453, allocations: 74.42 kB / 346.2 MB, free: 1.32 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001526/0.1455, allocations: 112 kB / 346.3 MB, free: 1.211 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001873/0.1474, allocations: 1.059 MB / 347.4 MB, free: 104 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.044e-05/0.1474, allocations: 0 / 347.4 MB, free: 104 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.699e-05/0.1475, allocations: 48 kB / 347.4 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.081e-05/0.1475, allocations: 24 kB / 347.5 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001819/0.1494, allocations: 0.9213 MB / 348.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005494/0.1549, allocations: 3.754 MB / 352.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002634/0.1575, allocations: 2.494 MB / 354.6 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009058/0.1585, allocations: 471.4 kB / 355.1 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001019/0.1586, allocations: 89.77 kB / 355.2 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009077/0.1595, allocations: 0.493 MB / 355.7 MB, free: 7.211 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 3.907e-06/0.1595, allocations: 0 / 355.7 MB, free: 7.211 MB / 302.1 MB Notification: Performance of matching and sorting (n=86): time 0.004444/0.164, allocations: 1.701 MB / 357.4 MB, free: 5.461 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.1641, allocations: 193 kB / 357.6 MB, free: 5.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005657/0.1647, allocations: 474 kB / 358 MB, free: 4.754 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.012e-05/0.1647, allocations: 45.7 kB / 358.1 MB, free: 4.703 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002978/0.165, allocations: 427.4 kB / 358.5 MB, free: 4.277 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002355/0.1653, allocations: 283.9 kB / 358.8 MB, free: 3.996 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002431/0.1655, allocations: 174.5 kB / 358.9 MB, free: 3.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.1657, allocations: 378.7 kB / 359.3 MB, free: 3.441 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005728/0.1663, allocations: 277.9 kB / 359.6 MB, free: 3.168 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007229/0.167, allocations: 0.52 MB / 360.1 MB, free: 2.547 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001271/0.1683, allocations: 0.8031 MB / 360.9 MB, free: 1.648 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.1683, allocations: 4 kB / 360.9 MB, free: 1.645 MB / 302.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002049/0.1704, allocations: 1.076 MB / 362 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.1704, allocations: 11.94 kB / 362 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.1704, allocations: 4 kB / 362 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008591/0.1713, allocations: 277.6 kB / 362.3 MB, free: 268 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005891/0.1719, allocations: 159.7 kB / 362.4 MB, free: 108 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005488/0.1774, allocations: 4.863 MB / 367.3 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007924/0.1782, allocations: 99.2 kB / 367.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.142e-05/0.1783, allocations: 40.05 kB / 367.4 MB, free: 10.83 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,iDC2.mean.y,$PRE.iDC2.mean.y,iAC.mean2.y,$PRE.iAC.mean2.y,iAC.mean1.y,$PRE.iAC.mean1.y,rectifierAC.idealDiode4.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,8), (4,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0004842/0.1788, allocations: 253.6 kB / 367.7 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001733/0.179, allocations: 71.14 kB / 367.7 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002102/0.1811, allocations: 0.9754 MB / 368.7 MB, free: 9.516 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.1811, allocations: 8 kB / 368.7 MB, free: 9.508 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.1811, allocations: 0 / 368.7 MB, free: 9.508 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.1811, allocations: 3.984 kB / 368.7 MB, free: 9.504 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00358/0.1847, allocations: 1.951 MB / 370.7 MB, free: 7.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.1847, allocations: 0 / 370.7 MB, free: 7.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004522/0.1852, allocations: 99.88 kB / 370.8 MB, free: 7.383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008012/0.186, allocations: 265.4 kB / 371 MB, free: 7.117 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.195e-05/0.1861, allocations: 20 kB / 371.1 MB, free: 7.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005446/0.1916, allocations: 4.821 MB / 375.9 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.584e-06/0.1916, allocations: 0 / 375.9 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002698/0.1943, allocations: 1.392 MB / 377.3 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003592/0.1947, allocations: 216.1 kB / 377.5 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000135/0.1948, allocations: 16 kB / 377.5 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005253/0.1953, allocations: 43.97 kB / 377.5 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001702/0.1955, allocations: 76.84 kB / 377.6 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.008e-05/0.1956, allocations: 23.98 kB / 377.6 MB, free: 196 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.1359/0.3315, allocations: 321 kB / 377.9 MB, free: 52.25 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.132e-06/0.3315, allocations: 0 / 377.9 MB, free: 52.25 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001541/0.3331, allocations: 318.8 kB / 378.3 MB, free: 52.25 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (voltageQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,8), (4,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003372/0.3365, allocations: 1.982 MB / 380.2 MB, free: 51.55 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002316/0.3388, allocations: 1.14 MB / 381.4 MB, free: 51.28 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.3388, allocations: 3.438 kB / 381.4 MB, free: 51.28 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001263/0.3401, allocations: 0.7402 MB / 382.1 MB, free: 51.01 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007474/0.3409, allocations: 125.7 kB / 382.2 MB, free: 51.01 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01043/0.3513, allocations: 6.851 MB / 389.1 MB, free: 47.18 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006002/0.3519, allocations: 1.002 MB / 390.1 MB, free: 46.47 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005303/0.3525, allocations: 87.39 kB / 390.2 MB, free: 46.45 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003434/0.3528, allocations: 329.7 kB / 390.5 MB, free: 46.2 MB / 318.1 MB Notification: Performance of SimCode: time 1.463e-06/0.3528, allocations: 0 / 390.5 MB, free: 46.2 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06505/0.4179, allocations: 19.15 MB / 409.7 MB, free: 33.12 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.71/13.13, allocations: 7.844 kB / 409.7 MB, free: 33.12 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1)