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.001777/0.001778, allocations: 114.5 kB / 17.07 MB, free: 6.016 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.00188/0.00188, allocations: 189.4 kB / 18 MB, free: 5.098 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.382/1.382, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1752/0.1752, allocations: 38.03 MB / 329.9 MB, free: 8.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 55.91 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3388, 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.004546/0.3434, allocations: 4.509 MB / 0.508 GB, free: 4.328 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.3452, allocations: 1.401 MB / 0.5094 GB, free: 3.352 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001584/0.3454, allocations: 16.75 kB / 0.5094 GB, free: 3.344 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007644/0.3462, allocations: 303.3 kB / 0.5097 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004839/0.3467, allocations: 275.2 kB / 0.51 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005486/0.3472, allocations: 261.4 kB / 0.5102 GB, free: 2.887 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006197/0.3479, allocations: 0.6529 MB / 0.5108 GB, free: 2.617 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003485/0.3482, allocations: 253.8 kB / 0.5111 GB, free: 2.512 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003365/0.3486, allocations: 292.1 kB / 0.5114 GB, free: 2.391 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005219/0.3491, allocations: 412.9 kB / 0.5118 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.027e-05/0.3492, allocations: 43.91 kB / 0.5118 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004009/0.3496, allocations: 221.5 kB / 0.512 GB, free: 2.195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002341/0.3499, allocations: 249.5 kB / 0.5122 GB, free: 2.113 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002639/0.3501, allocations: 294.2 kB / 0.5125 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007908/0.3509, allocations: 0.7575 MB / 0.5133 GB, free: 1.656 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.3509, allocations: 1.031 kB / 0.5133 GB, free: 1.656 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3509, allocations: 0 / 0.5133 GB, free: 1.656 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.351, 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.001322/0.3523, allocations: 0.8953 MB / 0.5141 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.3523, allocations: 13.23 kB / 0.5142 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.878e-05/0.3524, allocations: 97.48 kB / 0.5142 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005191/0.353, allocations: 100.5 kB / 0.5143 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005299/0.3535, allocations: 442.1 kB / 0.5148 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.958e-05/0.3535, allocations: 34.67 kB / 0.5148 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.027e-05/0.3536, allocations: 39.19 kB / 0.5148 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001148/0.3548, allocations: 0.865 MB / 0.5157 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.3548, allocations: 5.031 kB / 0.5157 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.493e-05/0.3549, allocations: 18.22 kB / 0.5157 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001591/0.355, allocations: 59.17 kB / 0.5158 GB, free: 156 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001296/0.3563, allocations: 0.7985 MB / 0.5165 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003689/0.36, allocations: 2.725 MB / 0.5192 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008815/0.3609, allocations: 0.5827 MB / 0.5198 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00055/0.3615, allocations: 449.1 kB / 0.5202 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.127e-05/0.3615, allocations: 4.766 kB / 0.5202 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.492e-05/0.3616, allocations: 36.69 kB / 0.5202 GB, free: 13.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=56): time 4.728e-06/0.3616, allocations: 0 / 0.5202 GB, free: 13.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=57): time 0.002953/0.3645, allocations: 1.902 MB / 0.5221 GB, free: 12.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.3647, allocations: 139.8 kB / 0.5222 GB, free: 12.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003439/0.365, allocations: 294.2 kB / 0.5225 GB, free: 12.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.356e-05/0.3651, allocations: 32.33 kB / 0.5225 GB, free: 12.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002054/0.3653, allocations: 264.2 kB / 0.5228 GB, free: 12.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/0.3655, allocations: 192 kB / 0.523 GB, free: 12.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001802/0.3657, allocations: 106.2 kB / 0.5231 GB, free: 12.01 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.3659, allocations: 351.2 kB / 0.5234 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004764/0.3663, allocations: 348.4 kB / 0.5237 GB, free: 11.58 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005844/0.3669, allocations: 481.1 kB / 0.5242 GB, free: 11.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001228/0.3682, allocations: 0.9801 MB / 0.5252 GB, free: 10.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.3682, allocations: 1.25 kB / 0.5252 GB, free: 10.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001545/0.3697, allocations: 0.9919 MB / 0.5261 GB, free: 10.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.733e-05/0.3698, allocations: 76.67 kB / 0.5262 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.3699, allocations: 5.281 kB / 0.5262 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001992/0.3701, allocations: 46.64 kB / 0.5262 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003552/0.3704, allocations: 89.45 kB / 0.5263 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001527/0.372, allocations: 1.545 MB / 0.5278 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003466/0.3723, allocations: 31.34 kB / 0.5279 GB, free: 8.895 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.681e-05/0.3724, allocations: 33.41 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.0004215/0.3728, allocations: 305.2 kB / 0.5282 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.3729, allocations: 47.17 kB / 0.5282 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001567/0.3745, allocations: 1.077 MB / 0.5293 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-05/0.3746, allocations: 11.7 kB / 0.5293 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3746, allocations: 1.156 kB / 0.5293 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.3746, allocations: 3.531 kB / 0.5293 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002884/0.3775, allocations: 1.797 MB / 0.5311 GB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.3775, allocations: 8.062 kB / 0.5311 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002568/0.3777, allocations: 59.45 kB / 0.5311 GB, free: 7.414 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001194/0.3779, allocations: 33.53 kB / 0.5312 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.617e-05/0.3779, allocations: 13.3 kB / 0.5312 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00139/0.3793, allocations: 1.553 MB / 0.5327 GB, free: 5.93 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3793, allocations: 2.203 kB / 0.5327 GB, free: 5.93 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001638/0.381, allocations: 1.175 MB / 0.5338 GB, free: 5.414 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002365/0.3812, allocations: 174.4 kB / 0.534 GB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.975e-05/0.3813, allocations: 20.52 kB / 0.534 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002535/0.3816, allocations: 27.33 kB / 0.534 GB, free: 5.266 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.3817, allocations: 41.3 kB / 0.5341 GB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.13e-05/0.3818, allocations: 18.98 kB / 0.5341 GB, free: 5.254 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000229/0.382, allocations: 207.8 kB / 0.5343 GB, free: 5.125 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.338e-06/0.382, allocations: 0 / 0.5343 GB, free: 5.125 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000626/0.3827, allocations: 151.6 kB / 0.5344 GB, free: 5.102 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.002167/0.3848, allocations: 1.768 MB / 0.5362 GB, free: 3.898 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001879/0.3867, allocations: 1.373 MB / 0.5375 GB, free: 3.137 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3867, allocations: 0 / 0.5375 GB, free: 3.137 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001087/0.3878, allocations: 0.9294 MB / 0.5384 GB, free: 2.559 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005511/0.3884, allocations: 81.69 kB / 0.5385 GB, free: 2.516 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007982/0.3964, allocations: 5.884 MB / 0.5442 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005975/0.397, allocations: 0.8976 MB / 0.5451 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002872/0.3973, allocations: 107.2 kB / 0.5452 GB, free: 12.74 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002339/0.3975, allocations: 155.4 kB / 0.5454 GB, free: 12.59 MB / 414.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3976, allocations: 0 / 0.5454 GB, free: 12.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03847/0.436, allocations: 10.26 MB / 0.5554 GB, free: 2.441 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.05/10.49, allocations: 6.719 kB / 0.5554 GB, free: 2.438 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Sensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Sensor.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1)