Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.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.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",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.001167/0.001167, allocations: 112.3 kB / 17.06 MB, free: 5.965 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.001248/0.001248, allocations: 196 kB / 18.01 MB, free: 5.051 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.398/1.398, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1846/0.1846, allocations: 38.02 MB / 329.9 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 67.89 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3332, allocations: 58.05 MB / 0.5036 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.004958/0.3382, allocations: 4.04 MB / 0.5076 GB, free: 4.664 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.3396, allocations: 0.897 MB / 0.5084 GB, free: 4.027 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001903/0.3399, allocations: 15.97 kB / 0.5085 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002291/0.3401, allocations: 46.89 kB / 0.5085 GB, free: 3.992 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005976/0.3407, allocations: 189.5 kB / 0.5087 GB, free: 3.879 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002814/0.341, allocations: 87.11 kB / 0.5088 GB, free: 3.836 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005014/0.3415, allocations: 404.3 kB / 0.5092 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002604/0.3418, allocations: 122.7 kB / 0.5093 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003492/0.3422, allocations: 184 kB / 0.5094 GB, free: 3.535 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003903/0.3426, allocations: 209.9 kB / 0.5096 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.153e-05/0.3426, allocations: 20.38 kB / 0.5097 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.99e-05/0.3427, allocations: 25.34 kB / 0.5097 GB, free: 3.453 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001497/0.3429, allocations: 104.7 kB / 0.5098 GB, free: 3.414 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000172/0.343, allocations: 153 kB / 0.5099 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004563/0.3435, allocations: 316 kB / 0.5102 GB, free: 3.195 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3435, allocations: 3.938 kB / 0.5102 GB, free: 3.191 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3435, allocations: 1.219 kB / 0.5102 GB, free: 3.191 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.473e-05/0.3435, allocations: 0 / 0.5102 GB, free: 3.191 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001133/0.3447, allocations: 0.623 MB / 0.5108 GB, free: 2.684 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.3447, allocations: 10.28 kB / 0.5109 GB, free: 2.684 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.582e-05/0.3448, allocations: 55.8 kB / 0.5109 GB, free: 2.633 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.469e-05/0.3449, allocations: 36.81 kB / 0.5109 GB, free: 2.613 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004563/0.3453, allocations: 354.3 kB / 0.5113 GB, free: 2.328 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.3453, allocations: 15.41 kB / 0.5113 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.171e-05/0.3454, allocations: 25.62 kB / 0.5113 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004555/0.3459, allocations: 318.9 kB / 0.5116 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.3459, allocations: 1.125 kB / 0.5116 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.727e-05/0.3459, allocations: 10.8 kB / 0.5116 GB, free: 2.121 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.3459, allocations: 5.594 kB / 0.5116 GB, free: 2.121 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003481/0.3463, allocations: 222 kB / 0.5119 GB, free: 2.051 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001425/0.3477, allocations: 1.342 MB / 0.5132 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003561/0.3481, allocations: 147.5 kB / 0.5133 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.3482, allocations: 63.05 kB / 0.5134 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.3482, allocations: 2.938 kB / 0.5134 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.175e-05/0.3483, allocations: 32.02 kB / 0.5134 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.703e-06/0.3483, allocations: 0 / 0.5134 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008202/0.3491, allocations: 378 kB / 0.5138 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.315e-05/0.3491, allocations: 82.8 kB / 0.5138 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002427/0.3494, allocations: 258.1 kB / 0.5141 GB, free: 376 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.3494, allocations: 27.05 kB / 0.5141 GB, free: 344 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.3495, allocations: 209.4 kB / 0.5143 GB, free: 164 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.622e-05/0.3496, allocations: 41.19 kB / 0.5144 GB, free: 132 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.864e-05/0.3496, allocations: 50.28 kB / 0.5144 GB, free: 96 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.3498, allocations: 340.7 kB / 0.5147 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.927e-05/0.3499, allocations: 53.42 kB / 0.5148 GB, free: 15.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001613/0.35, allocations: 151.3 kB / 0.5149 GB, free: 15.61 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002831/0.3503, allocations: 235.8 kB / 0.5151 GB, free: 15.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3503, allocations: 1.219 kB / 0.5151 GB, free: 15.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003792/0.3507, allocations: 251.7 kB / 0.5154 GB, free: 15.3 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.3508, allocations: 6.812 kB / 0.5154 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.3508, allocations: 4.188 kB / 0.5154 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.3508, allocations: 4.094 kB / 0.5154 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002032/0.351, allocations: 49.3 kB / 0.5154 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.351, allocations: 12.7 kB / 0.5155 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001397/0.3512, allocations: 13.91 kB / 0.5155 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.294e-05/0.3512, allocations: 18.25 kB / 0.5155 GB, free: 15.27 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001488/0.3514, allocations: 153.7 kB / 0.5156 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.944e-05/0.3514, allocations: 26.89 kB / 0.5157 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003564/0.3518, allocations: 202.7 kB / 0.5159 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.3518, allocations: 1.594 kB / 0.5159 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3518, allocations: 1.219 kB / 0.5159 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.3518, allocations: 6.75 kB / 0.5159 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007741/0.3526, allocations: 0.5516 MB / 0.5164 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.3526, allocations: 5.469 kB / 0.5164 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001573/0.3528, allocations: 30.73 kB / 0.5164 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.3528, allocations: 1.594 kB / 0.5164 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.3528, allocations: 2.359 kB / 0.5164 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.494e-06/0.3528, allocations: 5.562 kB / 0.5164 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3528, allocations: 1.656 kB / 0.5164 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004097/0.3532, allocations: 300 kB / 0.5167 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.532e-05/0.3533, allocations: 98 kB / 0.5168 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.783e-05/0.3534, allocations: 2.062 kB / 0.5168 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.3535, allocations: 10.25 kB / 0.5168 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.742e-05/0.3536, allocations: 13.75 kB / 0.5169 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.3536, allocations: 12.28 kB / 0.5169 GB, free: 14.26 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000216/0.3538, allocations: 183.4 kB / 0.517 GB, free: 14.16 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3538, allocations: 0 / 0.517 GB, free: 14.16 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004124/0.3542, allocations: 52.84 kB / 0.5171 GB, free: 14.15 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007884/0.355, allocations: 0.8251 MB / 0.5179 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004082/0.3555, allocations: 167.6 kB / 0.5181 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3555, allocations: 0 / 0.5181 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001618/0.3556, allocations: 71.5 kB / 0.5181 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005979/0.3562, allocations: 63.48 kB / 0.5182 GB, free: 13.31 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0032/0.3595, allocations: 2.555 MB / 0.5207 GB, free: 11.42 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003754/0.3599, allocations: 0.7797 MB / 0.5214 GB, free: 10.71 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001797/0.3601, allocations: 43.48 kB / 0.5215 GB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001479/0.3602, allocations: 90.36 kB / 0.5216 GB, free: 10.64 MB / 398.1 MB Notification: Performance of SimCode: time 4.7e-07/0.3602, allocations: 0 / 0.5216 GB, free: 10.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02889/0.3891, allocations: 4.942 MB / 0.5264 GB, free: 10.01 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.946/8.336, allocations: 6.109 kB / 0.5264 GB, free: 10 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00027027 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1)