Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) 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(PowerSystems.Examples.AC3ph.Elementary.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_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.001514/0.001514, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001828/0.001828, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.328/1.328, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1718/0.1718, allocations: 38.04 MB / 329.7 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 63.81 kB / 398.9 MB, free: 33.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09813/0.09939, allocations: 58.06 MB / 457 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Rectifier): time 0.008125/0.1076, allocations: 6.764 MB / 463.7 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003699/0.1113, allocations: 2.15 MB / 465.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006048/0.1119, allocations: 27.81 kB / 465.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001639/0.1136, allocations: 0.5128 MB / 466.4 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001527/0.1152, allocations: 0.5521 MB / 467 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000943/0.1161, allocations: 371.2 kB / 467.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001726/0.1179, allocations: 1.302 MB / 468.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001232/0.1191, allocations: 0.7362 MB / 469.4 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008487/0.12, allocations: 0.5371 MB / 469.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001078/0.1211, allocations: 0.6933 MB / 470.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000246/0.1213, allocations: 104 kB / 470.7 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001155/0.1225, allocations: 0.5461 MB / 471.2 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005241/0.123, allocations: 470.9 kB / 471.7 MB, free: 9.125 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007684/0.1238, allocations: 0.5095 MB / 472.2 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001632/0.1254, allocations: 1.445 MB / 473.7 MB, free: 7.164 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.1255, allocations: 3.984 kB / 473.7 MB, free: 7.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.1255, allocations: 0 / 473.7 MB, free: 7.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.653e-05/0.1255, allocations: 0 / 473.7 MB, free: 7.16 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.003324/0.1289, allocations: 1.347 MB / 475 MB, free: 5.766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.1289, allocations: 15.89 kB / 475 MB, free: 5.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002167/0.1292, allocations: 143.7 kB / 475.2 MB, free: 5.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008205/0.13, allocations: 147.7 kB / 475.3 MB, free: 5.457 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00121/0.1312, allocations: 0.6437 MB / 476 MB, free: 4.773 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002613/0.1315, allocations: 187.4 kB / 476.1 MB, free: 4.574 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000243/0.1317, allocations: 95.77 kB / 476.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002526/0.1343, allocations: 1.366 MB / 477.6 MB, free: 3.047 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.179e-05/0.1343, allocations: 0 / 477.6 MB, free: 3.047 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001016/0.1344, allocations: 36 kB / 477.6 MB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001622/0.1346, allocations: 61.97 kB / 477.7 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002363/0.137, allocations: 1.292 MB / 479 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006963/0.1439, allocations: 4.919 MB / 483.9 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002142/0.1461, allocations: 1.138 MB / 485 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001077/0.1472, allocations: 0.6271 MB / 485.7 MB, free: 10.78 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.109e-05/0.1473, allocations: 12.44 kB / 485.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/0.1473, allocations: 43.12 kB / 485.7 MB, free: 10.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.375e-06/0.1473, allocations: 0 / 485.7 MB, free: 10.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.005616/0.1529, allocations: 3.175 MB / 488.9 MB, free: 7.445 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.956e-05/0.153, allocations: 89.67 kB / 489 MB, free: 7.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004619/0.1535, allocations: 461.9 kB / 489.4 MB, free: 6.875 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.567e-05/0.1535, allocations: 41.7 kB / 489.5 MB, free: 6.828 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002386/0.1538, allocations: 391.3 kB / 489.9 MB, free: 6.438 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001934/0.154, allocations: 264.3 kB / 490.1 MB, free: 6.176 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002327/0.1542, allocations: 146.6 kB / 490.3 MB, free: 6.027 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.1544, allocations: 370.8 kB / 490.6 MB, free: 5.656 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009009/0.1553, allocations: 0.4938 MB / 491.1 MB, free: 5.164 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/0.1563, allocations: 0.6872 MB / 491.8 MB, free: 4.398 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001929/0.1582, allocations: 1.22 MB / 493 MB, free: 3.102 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1582, allocations: 4 kB / 493 MB, free: 3.098 MB / 366.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.004327/0.1626, allocations: 1.978 MB / 495 MB, free: 1.086 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.1626, allocations: 7.938 kB / 495 MB, free: 1.078 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003819/0.1664, allocations: 1.723 MB / 496.7 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001764/0.1682, allocations: 0.6534 MB / 497.4 MB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005926/0.1688, allocations: 147.8 kB / 497.5 MB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01185/0.1807, allocations: 7.412 MB / 0.4931 GB, free: 6.836 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009172/0.1816, allocations: 80 kB / 0.4932 GB, free: 6.758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001903/0.1818, allocations: 35.98 kB / 0.4932 GB, free: 6.723 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 73 * Array equations: 1 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0005881/0.1824, allocations: 309.5 kB / 0.4935 GB, free: 6.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002164/0.1827, allocations: 59.25 kB / 0.4936 GB, free: 6.352 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002585/0.1853, allocations: 1.301 MB / 0.4948 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.423e-05/0.1853, allocations: 16 kB / 0.4949 GB, free: 5.008 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.561e-05/0.1853, allocations: 3.984 kB / 0.4949 GB, free: 5.004 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.1853, allocations: 4 kB / 0.4949 GB, free: 5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004061/0.1894, allocations: 2.414 MB / 0.4972 GB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.418e-05/0.1894, allocations: 4 kB / 0.4972 GB, free: 2.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002683/0.1921, allocations: 499.3 kB / 0.4977 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001073/0.1922, allocations: 32.84 kB / 0.4977 GB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.527e-05/0.1923, allocations: 23.98 kB / 0.4978 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001081/0.1934, allocations: 1.626 MB / 0.4993 GB, free: 184 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.1934, allocations: 3.984 kB / 0.4993 GB, free: 180 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003182/0.1966, allocations: 2.016 MB / 0.5013 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001568/0.1968, allocations: 128.3 kB / 0.5014 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001193/0.1969, allocations: 19.98 kB / 0.5015 GB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005649/0.1975, allocations: 59.92 kB / 0.5015 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001706/0.1977, allocations: 60.47 kB / 0.5016 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.314e-05/0.1977, allocations: 19.94 kB / 0.5016 GB, free: 13.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003499/0.1981, allocations: 322.9 kB / 0.5019 GB, free: 13.49 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1981, allocations: 0 / 0.5019 GB, free: 13.49 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000918/0.199, allocations: 240 kB / 0.5021 GB, free: 13.26 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 64 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003623/0.2026, allocations: 2.584 MB / 0.5047 GB, free: 10.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003331/0.206, allocations: 1.844 MB / 0.5065 GB, free: 8.742 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.206, allocations: 0 / 0.5065 GB, free: 8.742 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002693/0.2087, allocations: 1.002 MB / 0.5074 GB, free: 7.727 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008554/0.2096, allocations: 161 kB / 0.5076 GB, free: 7.574 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1755/0.3851, allocations: 9.524 MB / 0.5169 GB, free: 70 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006495/0.3858, allocations: 1.076 MB / 0.5179 GB, free: 69.3 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006909/0.3865, allocations: 209.2 kB / 0.5181 GB, free: 69.29 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000393/0.3869, allocations: 290.9 kB / 0.5184 GB, free: 69.29 MB / 398.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3869, allocations: 1.188 kB / 0.5184 GB, free: 69.29 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04655/0.4335, allocations: 19.93 MB / 0.5379 GB, free: 62.96 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.21, allocations: 1.438 kB / 0.5379 GB, free: 62.96 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Rectifier.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Rectifier_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Rectifier.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe 2>&1)