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.001144/0.001144, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001045/0.001046, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.339/1.339, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1748/0.1748, allocations: 38.04 MB / 329.9 MB, free: 8.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 59.91 kB / 457.6 MB, free: 7.316 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.362/0.3632, allocations: 58.06 MB / 0.5036 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.005011/0.3683, allocations: 4.507 MB / 0.508 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002053/0.3704, allocations: 1.406 MB / 0.5094 GB, free: 3.348 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002092/0.3706, allocations: 12.06 kB / 0.5094 GB, free: 3.344 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008333/0.3714, allocations: 291.9 kB / 0.5097 GB, free: 3.168 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005676/0.372, allocations: 284.7 kB / 0.51 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006424/0.3727, allocations: 256.9 kB / 0.5102 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000669/0.3733, allocations: 0.6611 MB / 0.5108 GB, free: 2.617 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003921/0.3737, allocations: 247.8 kB / 0.5111 GB, free: 2.516 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003922/0.3742, allocations: 301.1 kB / 0.5114 GB, free: 2.391 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005726/0.3747, allocations: 408.9 kB / 0.5118 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.658e-05/0.3748, allocations: 45.72 kB / 0.5118 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004198/0.3753, allocations: 221.3 kB / 0.512 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002614/0.3755, allocations: 252.5 kB / 0.5123 GB, free: 2.113 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002929/0.3758, allocations: 290 kB / 0.5125 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009833/0.3768, allocations: 0.7624 MB / 0.5133 GB, free: 1.656 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3768, allocations: 0.8438 kB / 0.5133 GB, free: 1.656 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3768, allocations: 1.312 kB / 0.5133 GB, free: 1.656 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.884e-05/0.3769, allocations: 0 / 0.5133 GB, free: 1.656 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.001539/0.3784, allocations: 0.8901 MB / 0.5141 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.3785, allocations: 13.52 kB / 0.5142 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001178/0.3786, allocations: 101.2 kB / 0.5143 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006653/0.3793, allocations: 100.5 kB / 0.5144 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000663/0.3799, allocations: 442 kB / 0.5148 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.885e-05/0.38, allocations: 30.41 kB / 0.5148 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.475e-05/0.3801, allocations: 42.77 kB / 0.5148 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00127/0.3814, allocations: 0.8579 MB / 0.5157 GB, free: 184 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.795e-05/0.3814, allocations: 10.05 kB / 0.5157 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.47e-05/0.3815, allocations: 18.28 kB / 0.5157 GB, free: 164 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001808/0.3817, allocations: 58.62 kB / 0.5158 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001379/0.3831, allocations: 0.7964 MB / 0.5165 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004018/0.3871, allocations: 2.72 MB / 0.5192 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000956/0.3881, allocations: 0.5847 MB / 0.5198 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005316/0.3886, allocations: 457.8 kB / 0.5202 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.882e-05/0.3886, allocations: 8.516 kB / 0.5202 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/0.3887, allocations: 36.84 kB / 0.5202 GB, free: 13.56 MB / 398.1 MB Notification: Performance of pre-optimization done (n=56): time 2.234e-06/0.3887, allocations: 0 / 0.5202 GB, free: 13.56 MB / 398.1 MB Notification: Performance of matching and sorting (n=57): time 0.003358/0.3921, allocations: 1.898 MB / 0.5221 GB, free: 12.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/0.3922, allocations: 138.9 kB / 0.5222 GB, free: 12.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000439/0.3926, allocations: 295.2 kB / 0.5225 GB, free: 12.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.507e-05/0.3927, allocations: 32.14 kB / 0.5225 GB, free: 12.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002304/0.3929, allocations: 268.2 kB / 0.5228 GB, free: 12.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002065/0.3932, allocations: 191.8 kB / 0.523 GB, free: 12.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002058/0.3934, allocations: 102.1 kB / 0.5231 GB, free: 12.01 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.3936, allocations: 354.6 kB / 0.5234 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005911/0.3942, allocations: 345.5 kB / 0.5237 GB, free: 11.58 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006609/0.3948, allocations: 484.2 kB / 0.5242 GB, free: 11.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001268/0.3961, allocations: 0.9804 MB / 0.5252 GB, free: 10.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3961, allocations: 2.156 kB / 0.5252 GB, free: 10.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001574/0.3977, allocations: 0.9872 MB / 0.5261 GB, free: 10.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.91e-05/0.3978, allocations: 77.11 kB / 0.5262 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/0.3978, allocations: 4.688 kB / 0.5262 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002096/0.3981, allocations: 38.33 kB / 0.5262 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003456/0.3984, allocations: 90.38 kB / 0.5263 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001444/0.3999, allocations: 1.552 MB / 0.5279 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003799/0.4003, allocations: 30.91 kB / 0.5279 GB, free: 8.895 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.849e-05/0.4003, allocations: 35.14 kB / 0.5279 GB, free: 8.883 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.0004413/0.4008, allocations: 299 kB / 0.5282 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.4009, allocations: 48.64 kB / 0.5282 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001668/0.4026, allocations: 1.081 MB / 0.5293 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.232e-05/0.4026, allocations: 16.83 kB / 0.5293 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.4027, allocations: 0.9688 kB / 0.5293 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.4027, allocations: 1.312 kB / 0.5293 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002775/0.4055, allocations: 1.794 MB / 0.5311 GB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.4055, allocations: 1.469 kB / 0.5311 GB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002752/0.4058, allocations: 63.67 kB / 0.5311 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001134/0.4059, allocations: 31.97 kB / 0.5312 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.318e-05/0.406, allocations: 17.95 kB / 0.5312 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001213/0.4072, allocations: 1.549 MB / 0.5327 GB, free: 5.934 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.4072, allocations: 1.281 kB / 0.5327 GB, free: 5.934 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.4088, allocations: 1.177 MB / 0.5338 GB, free: 5.418 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000311/0.4091, allocations: 173.7 kB / 0.534 GB, free: 5.285 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.719e-05/0.4092, allocations: 16.53 kB / 0.534 GB, free: 5.277 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002979/0.4095, allocations: 27.86 kB / 0.5341 GB, free: 5.273 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/0.4097, allocations: 40.89 kB / 0.5341 GB, free: 5.266 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.312e-05/0.4097, allocations: 19.61 kB / 0.5341 GB, free: 5.262 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002184/0.4099, allocations: 203.8 kB / 0.5343 GB, free: 5.129 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.443e-06/0.41, allocations: 4 kB / 0.5343 GB, free: 5.125 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006867/0.4106, allocations: 156.3 kB / 0.5345 GB, free: 5.098 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.001922/0.4126, allocations: 1.763 MB / 0.5362 GB, free: 3.898 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001791/0.4144, allocations: 1.381 MB / 0.5375 GB, free: 3.129 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4144, allocations: 0 / 0.5375 GB, free: 3.129 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009919/0.4154, allocations: 0.9297 MB / 0.5384 GB, free: 2.551 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005695/0.416, allocations: 77.92 kB / 0.5385 GB, free: 2.508 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007015/0.423, allocations: 5.884 MB / 0.5443 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004681/0.4235, allocations: 0.9015 MB / 0.5451 GB, free: 12.78 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002847/0.4238, allocations: 103.2 kB / 0.5452 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000212/0.424, allocations: 159.4 kB / 0.5454 GB, free: 12.52 MB / 414.1 MB Notification: Performance of SimCode: time 7.62e-07/0.424, allocations: 0 / 0.5454 GB, free: 12.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04386/0.4679, allocations: 10.26 MB / 0.5554 GB, free: 2.375 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.885/10.35, allocations: 2.656 kB / 0.5554 GB, free: 2.375 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)