Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_AC3ph_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Rectifier,fileNamePrefix="PowerSystems_latest_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.001461/0.001461, 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.001417/0.001417, 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.372/1.372, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1827/0.1827, allocations: 38.03 MB / 329.7 MB, free: 8.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 70.23 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1042, allocations: 58.07 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Rectifier): time 0.008331/0.1126, allocations: 6.753 MB / 463.7 MB, free: 1.172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003858/0.1165, allocations: 2.146 MB / 465.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004891/0.117, allocations: 23.88 kB / 465.9 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001652/0.1187, allocations: 0.5093 MB / 466.4 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001698/0.1204, allocations: 0.5522 MB / 467 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009301/0.1213, allocations: 375.2 kB / 467.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001407/0.1228, allocations: 1.306 MB / 468.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001022/0.1238, allocations: 0.7362 MB / 469.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008393/0.1246, allocations: 0.545 MB / 469.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001071/0.1257, allocations: 0.6855 MB / 470.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002281/0.126, allocations: 100 kB / 470.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001012/0.127, allocations: 0.546 MB / 471.2 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005382/0.1275, allocations: 478.8 kB / 471.7 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007446/0.1283, allocations: 0.5095 MB / 472.2 MB, free: 8.645 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001517/0.1298, allocations: 1.445 MB / 473.7 MB, free: 7.195 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1298, allocations: 4 kB / 473.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1298, allocations: 0 / 473.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.412e-05/0.1299, allocations: 0 / 473.7 MB, free: 7.191 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.003255/0.1331, allocations: 1.344 MB / 475 MB, free: 5.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.1332, allocations: 11.89 kB / 475 MB, free: 5.785 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002524/0.1335, allocations: 147.6 kB / 475.2 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008712/0.1343, allocations: 143.8 kB / 475.3 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001308/0.1357, allocations: 0.6514 MB / 476 MB, free: 4.801 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000253/0.1359, allocations: 179.4 kB / 476.1 MB, free: 4.609 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002365/0.1362, allocations: 91.89 kB / 476.2 MB, free: 4.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002228/0.1384, allocations: 1.362 MB / 477.6 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.438e-05/0.1385, allocations: 3.938 kB / 477.6 MB, free: 3.086 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.328e-05/0.1386, allocations: 32 kB / 477.6 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001666/0.1387, allocations: 61.97 kB / 477.7 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002413/0.1411, allocations: 1.299 MB / 479 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007064/0.1482, allocations: 4.919 MB / 483.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002222/0.1505, allocations: 1.145 MB / 485.1 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0011/0.1516, allocations: 0.6165 MB / 485.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.722e-05/0.1517, allocations: 20.47 kB / 485.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.914e-05/0.1517, allocations: 39.12 kB / 485.7 MB, free: 10.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 3.055e-06/0.1517, allocations: 0 / 485.7 MB, free: 10.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.006032/0.1578, allocations: 3.171 MB / 488.9 MB, free: 7.484 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.177e-05/0.1578, allocations: 89.61 kB / 489 MB, free: 7.379 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005447/0.1584, allocations: 473.9 kB / 489.4 MB, free: 6.902 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.367e-05/0.1585, allocations: 37.7 kB / 489.5 MB, free: 6.859 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003081/0.1588, allocations: 391.3 kB / 489.9 MB, free: 6.469 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002419/0.159, allocations: 256.3 kB / 490.1 MB, free: 6.215 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002664/0.1593, allocations: 154.5 kB / 490.3 MB, free: 6.059 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.1595, allocations: 370.8 kB / 490.6 MB, free: 5.688 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009495/0.1604, allocations: 0.4938 MB / 491.1 MB, free: 5.195 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001097/0.1615, allocations: 0.6834 MB / 491.8 MB, free: 4.434 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002035/0.1636, allocations: 1.224 MB / 493 MB, free: 3.133 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.1636, allocations: 4 kB / 493 MB, free: 3.129 MB / 366.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.004598/0.1682, allocations: 1.974 MB / 495 MB, free: 1.121 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.923e-05/0.1682, allocations: 12.47 kB / 495 MB, free: 1.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003953/0.1722, allocations: 1.71 MB / 496.7 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001804/0.174, allocations: 0.6533 MB / 497.4 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006022/0.1746, allocations: 151.8 kB / 497.5 MB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01144/0.1861, allocations: 7.42 MB / 0.4931 GB, free: 6.867 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007261/0.1868, allocations: 75.91 kB / 0.4932 GB, free: 6.793 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.719e-05/0.1869, allocations: 28 kB / 0.4932 GB, free: 6.766 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.0005013/0.1874, allocations: 313.5 kB / 0.4935 GB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001795/0.1876, allocations: 63.23 kB / 0.4936 GB, free: 6.387 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002366/0.19, allocations: 1.297 MB / 0.4948 GB, free: 5.062 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.598e-05/0.19, allocations: 27.92 kB / 0.4949 GB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.19, allocations: 0 / 0.4949 GB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.1901, allocations: 3.984 kB / 0.4949 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003952/0.194, allocations: 2.418 MB / 0.4972 GB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.194, allocations: 0 / 0.4972 GB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00278/0.1968, allocations: 0.4916 MB / 0.4977 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001157/0.197, allocations: 28.84 kB / 0.4977 GB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.798e-05/0.197, allocations: 23.98 kB / 0.4978 GB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/0.1983, allocations: 1.626 MB / 0.4994 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1983, allocations: 4.031 kB / 0.4994 GB, free: 212 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003305/0.2016, allocations: 2.012 MB / 0.5013 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001705/0.2018, allocations: 128.4 kB / 0.5014 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001218/0.2019, allocations: 19.98 kB / 0.5015 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005641/0.2025, allocations: 55.92 kB / 0.5015 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001659/0.2026, allocations: 72.41 kB / 0.5016 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.044e-05/0.2027, allocations: 23.88 kB / 0.5016 GB, free: 13.83 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003493/0.2031, allocations: 318.9 kB / 0.5019 GB, free: 13.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2031, allocations: 0 / 0.5019 GB, free: 13.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009051/0.204, allocations: 232 kB / 0.5021 GB, free: 13.3 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.003636/0.2076, allocations: 2.586 MB / 0.5047 GB, free: 10.65 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003455/0.2111, allocations: 1.84 MB / 0.5065 GB, free: 8.781 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.2111, allocations: 0 / 0.5065 GB, free: 8.781 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002762/0.2139, allocations: 1.006 MB / 0.5074 GB, free: 7.762 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009008/0.2148, allocations: 165 kB / 0.5076 GB, free: 7.605 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1947/0.4096, allocations: 9.524 MB / 0.5169 GB, free: 70.42 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005621/0.4102, allocations: 1.073 MB / 0.5179 GB, free: 69.72 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006387/0.4108, allocations: 218.5 kB / 0.5182 GB, free: 69.71 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003736/0.4112, allocations: 288.6 kB / 0.5184 GB, free: 69.71 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4112, allocations: 1.312 kB / 0.5184 GB, free: 69.71 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04619/0.4574, allocations: 19.92 MB / 0.5379 GB, free: 63.51 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.98, allocations: 5.438 kB / 0.5379 GB, free: 63.51 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_AC3ph_Elementary_Rectifier.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe 2>&1)