Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.001259/0.001264, allocations: 113.8 kB / 17.07 MB, free: 5.969 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.001251/0.001251, allocations: 193.3 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.486/1.486, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1871/0.1871, allocations: 38.03 MB / 329.9 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 67.89 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3925/0.3945, allocations: 58.06 MB / 0.5036 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.005394/0.3999, allocations: 4.51 MB / 0.508 GB, free: 4.363 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00256/0.4025, allocations: 1.399 MB / 0.5094 GB, free: 3.387 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002954/0.4028, allocations: 16.34 kB / 0.5094 GB, free: 3.379 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009775/0.4039, allocations: 293.8 kB / 0.5097 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007093/0.4046, allocations: 283 kB / 0.51 GB, free: 3.043 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007811/0.4054, allocations: 257.2 kB / 0.5102 GB, free: 2.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009333/0.4063, allocations: 0.6684 MB / 0.5109 GB, free: 2.645 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004876/0.4068, allocations: 239.5 kB / 0.5111 GB, free: 2.551 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005543/0.4074, allocations: 296.3 kB / 0.5114 GB, free: 2.426 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000729/0.4081, allocations: 415.4 kB / 0.5118 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.954e-05/0.4082, allocations: 44.75 kB / 0.5118 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005719/0.4088, allocations: 222.7 kB / 0.512 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003442/0.4092, allocations: 247.8 kB / 0.5123 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003446/0.4095, allocations: 289.8 kB / 0.5125 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001127/0.4107, allocations: 0.7591 MB / 0.5133 GB, free: 1.691 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.4107, allocations: 0 / 0.5133 GB, free: 1.691 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4107, allocations: 1.125 kB / 0.5133 GB, free: 1.691 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.4107, allocations: 0 / 0.5133 GB, free: 1.691 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001641/0.4124, allocations: 0.8953 MB / 0.5141 GB, free: 1.027 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.4124, allocations: 14.06 kB / 0.5142 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00011/0.4125, allocations: 93.19 kB / 0.5142 GB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005987/0.4131, allocations: 99.7 kB / 0.5143 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006153/0.4138, allocations: 438.4 kB / 0.5148 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/0.4138, allocations: 33.7 kB / 0.5148 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.068e-05/0.4139, allocations: 42.91 kB / 0.5148 GB, free: 0.582 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001297/0.4152, allocations: 0.8623 MB / 0.5157 GB, free: 220 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/0.4152, allocations: 1.641 kB / 0.5157 GB, free: 220 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.774e-05/0.4153, allocations: 17.44 kB / 0.5157 GB, free: 208 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000183/0.4155, allocations: 62.88 kB / 0.5158 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001606/0.4171, allocations: 0.7985 MB / 0.5165 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004254/0.4214, allocations: 2.718 MB / 0.5192 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009768/0.4224, allocations: 0.5844 MB / 0.5198 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005837/0.423, allocations: 448.3 kB / 0.5202 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.374e-05/0.423, allocations: 10.05 kB / 0.5202 GB, free: 13.65 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.29e-05/0.4231, allocations: 32.59 kB / 0.5202 GB, free: 13.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=56): time 2.325e-06/0.4231, allocations: 0 / 0.5202 GB, free: 13.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=57): time 0.003251/0.4263, allocations: 1.906 MB / 0.5221 GB, free: 12.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001234/0.4265, allocations: 135.2 kB / 0.5222 GB, free: 12.67 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003643/0.4269, allocations: 299.5 kB / 0.5225 GB, free: 12.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.465e-05/0.4269, allocations: 31.17 kB / 0.5225 GB, free: 12.47 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001906/0.4271, allocations: 265.6 kB / 0.5228 GB, free: 12.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001919/0.4273, allocations: 195.1 kB / 0.523 GB, free: 12.1 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000185/0.4275, allocations: 102.4 kB / 0.5231 GB, free: 12.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.4277, allocations: 354.2 kB / 0.5234 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000487/0.4282, allocations: 345 kB / 0.5237 GB, free: 11.62 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006016/0.4288, allocations: 488.6 kB / 0.5242 GB, free: 11.36 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001258/0.4301, allocations: 0.9812 MB / 0.5252 GB, free: 10.86 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.4301, allocations: 5.312 kB / 0.5252 GB, free: 10.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001546/0.4316, allocations: 0.9756 MB / 0.5261 GB, free: 10.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.192e-05/0.4317, allocations: 81.5 kB / 0.5262 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.4318, allocations: 8.875 kB / 0.5262 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001882/0.432, allocations: 41.34 kB / 0.5262 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003629/0.4323, allocations: 85.81 kB / 0.5263 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00163/0.434, allocations: 1.557 MB / 0.5278 GB, free: 8.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003914/0.4344, allocations: 34.5 kB / 0.5279 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.168e-05/0.4345, allocations: 29.61 kB / 0.5279 GB, free: 8.918 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1],system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004562/0.4349, allocations: 305.1 kB / 0.5282 GB, free: 8.715 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/0.4351, allocations: 44.97 kB / 0.5282 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001662/0.4367, allocations: 1.083 MB / 0.5293 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.411e-05/0.4368, allocations: 10.61 kB / 0.5293 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.4368, allocations: 2.531 kB / 0.5293 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.4368, allocations: 1.828 kB / 0.5293 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002952/0.4397, allocations: 1.798 MB / 0.5311 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/0.4398, allocations: 2.109 kB / 0.5311 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002799/0.4401, allocations: 49.7 kB / 0.5311 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001357/0.4402, allocations: 37.16 kB / 0.5312 GB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.395e-05/0.4403, allocations: 13.62 kB / 0.5312 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001541/0.4418, allocations: 1.554 MB / 0.5327 GB, free: 5.973 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.4418, allocations: 5.25 kB / 0.5327 GB, free: 5.969 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001917/0.4438, allocations: 1.179 MB / 0.5338 GB, free: 5.438 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000272/0.4441, allocations: 176.7 kB / 0.534 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.3e-05/0.4441, allocations: 11.09 kB / 0.534 GB, free: 5.285 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002819/0.4444, allocations: 30.94 kB / 0.5341 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.4446, allocations: 52 kB / 0.5341 GB, free: 5.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.497e-05/0.4446, allocations: 13.44 kB / 0.5341 GB, free: 5.238 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002669/0.4449, allocations: 207 kB / 0.5343 GB, free: 5.094 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4449, allocations: 0 / 0.5343 GB, free: 5.094 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007293/0.4457, allocations: 144.6 kB / 0.5344 GB, free: 5.078 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,voltage.h_mod3[1],voltage.h_mod3[2],voltage.h_mod3[3]) * Number of discrete states: 3 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 25 * Array equations: 2 * Algorithm blocks: 1 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002269/0.4479, allocations: 1.771 MB / 0.5362 GB, free: 3.871 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001982/0.4499, allocations: 1.373 MB / 0.5375 GB, free: 3.109 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.45, allocations: 0 / 0.5375 GB, free: 3.109 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001144/0.4511, allocations: 0.9251 MB / 0.5384 GB, free: 2.535 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006981/0.4518, allocations: 71.95 kB / 0.5385 GB, free: 2.504 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009129/0.461, allocations: 5.89 MB / 0.5442 GB, free: 13.78 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006652/0.4617, allocations: 0.9054 MB / 0.5451 GB, free: 12.85 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000315/0.462, allocations: 95.2 kB / 0.5452 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002467/0.4623, allocations: 155.4 kB / 0.5454 GB, free: 12.6 MB / 414.1 MB Notification: Performance of SimCode: time 3.106e-06/0.4623, allocations: 0 / 0.5454 GB, free: 12.6 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04196/0.5043, allocations: 10.27 MB / 0.5554 GB, free: 2.449 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/11.03, allocations: 7.391 kB / 0.5554 GB, free: 2.445 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Sensor.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1)