Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.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.Generic.Network.NetworkControlled,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkControlled,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkControlled",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.001315/0.001315, allocations: 109.6 kB / 17.06 MB, free: 6.004 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.001269/0.00127, allocations: 189.4 kB / 18 MB, free: 5.09 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.383/1.383, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1827/0.1827, allocations: 38.03 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 63.91 kB / 457.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.3308, allocations: 58.06 MB / 0.5036 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.008962/0.3398, allocations: 9.491 MB / 0.5129 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009063/0.349, allocations: 5.41 MB / 0.5182 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001365/0.3504, allocations: 25.59 kB / 0.5182 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003387/0.3538, allocations: 1.129 MB / 0.5193 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004771/0.3586, allocations: 1.356 MB / 0.5206 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002435/0.361, allocations: 0.6176 MB / 0.5212 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004268/0.3653, allocations: 2.023 MB / 0.5232 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001798/0.3671, allocations: 1.045 MB / 0.5242 GB, free: 9.828 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00205/0.3692, allocations: 0.8386 MB / 0.525 GB, free: 9.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001808/0.371, allocations: 0.9168 MB / 0.5259 GB, free: 9.027 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002749/0.3713, allocations: 110 kB / 0.526 GB, free: 9.027 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003762/0.3751, allocations: 1.552 MB / 0.5276 GB, free: 8.41 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007821/0.3759, allocations: 0.5785 MB / 0.5281 GB, free: 8.199 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008613/0.3768, allocations: 0.6637 MB / 0.5288 GB, free: 7.793 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003639/0.3804, allocations: 2.063 MB / 0.5308 GB, free: 7.016 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3805, allocations: 1.375 kB / 0.5308 GB, free: 7.016 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3805, allocations: 0 / 0.5308 GB, free: 7.016 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.313e-05/0.3805, allocations: 4 kB / 0.5308 GB, free: 7.012 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 299 * Number of variables: 299 Notification: Performance of Generate backend data structure: time 0.003278/0.3838, allocations: 1.686 MB / 0.5324 GB, free: 5.73 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.3838, allocations: 17.52 kB / 0.5325 GB, free: 5.723 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002307/0.3841, allocations: 181.1 kB / 0.5326 GB, free: 5.578 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003585/0.3877, allocations: 484.8 kB / 0.5331 GB, free: 5.348 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/0.389, allocations: 0.6988 MB / 0.5338 GB, free: 4.793 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.533e-05/0.3891, allocations: 87.66 kB / 0.5339 GB, free: 4.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002072/0.3893, allocations: 113 kB / 0.534 GB, free: 4.711 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002883/0.3922, allocations: 1.603 MB / 0.5355 GB, free: 3.746 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.824e-05/0.3922, allocations: 2.031 kB / 0.5355 GB, free: 3.746 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001359/0.3924, allocations: 45.81 kB / 0.5356 GB, free: 3.711 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001204/0.3925, allocations: 97.05 kB / 0.5357 GB, free: 3.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002996/0.3955, allocations: 1.624 MB / 0.5373 GB, free: 2.914 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009394/0.4049, allocations: 4.921 MB / 0.5421 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00264/0.4076, allocations: 1.323 MB / 0.5434 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001415/0.409, allocations: 0.7869 MB / 0.5441 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.289e-05/0.4091, allocations: 25.91 kB / 0.5441 GB, free: 14.35 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001563/0.4107, allocations: 0.8443 MB / 0.545 GB, free: 13.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=126): time 3.576e-06/0.4107, allocations: 0 / 0.545 GB, free: 13.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=137): time 0.01545/0.4262, allocations: 6.363 MB / 0.5512 GB, free: 7.484 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.4263, allocations: 120.1 kB / 0.5513 GB, free: 7.344 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008712/0.4272, allocations: 0.5705 MB / 0.5519 GB, free: 6.762 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001104/0.4273, allocations: 53.7 kB / 0.5519 GB, free: 6.703 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005128/0.4279, allocations: 485.3 kB / 0.5524 GB, free: 6.223 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005407/0.4284, allocations: 491.8 kB / 0.5528 GB, free: 5.738 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004368/0.4289, allocations: 226.9 kB / 0.5531 GB, free: 5.512 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002441/0.4291, allocations: 402.7 kB / 0.5534 GB, free: 5.109 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00122/0.4303, allocations: 0.6228 MB / 0.554 GB, free: 4.48 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001363/0.4317, allocations: 0.7793 MB / 0.5548 GB, free: 3.66 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002698/0.4344, allocations: 1.502 MB / 0.5563 GB, free: 2.109 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.4344, allocations: 0 / 0.5563 GB, free: 2.109 MB / 414.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.004336/0.4388, allocations: 2.072 MB / 0.5583 GB, free: 16 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.678e-05/0.4389, allocations: 41.69 kB / 0.5583 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.4389, allocations: 4.281 kB / 0.5583 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001357/0.4403, allocations: 449.3 kB / 0.5588 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/0.4414, allocations: 263.5 kB / 0.559 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009912/0.4514, allocations: 6.749 MB / 0.5656 GB, free: 8.215 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001127/0.4525, allocations: 83.97 kB / 0.5657 GB, free: 8.133 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002215/0.4528, allocations: 51.98 kB / 0.5657 GB, free: 8.082 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001855/0.4546, allocations: 0.8733 MB / 0.5666 GB, free: 7.207 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001383/0.456, allocations: 0.7598 MB / 0.5673 GB, free: 6.406 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002687/0.4587, allocations: 1.472 MB / 0.5688 GB, free: 4.891 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.414e-06/0.4588, allocations: 4 kB / 0.5688 GB, free: 4.887 MB / 430.1 MB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.004234/0.463, allocations: 2.002 MB / 0.5707 GB, free: 2.863 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.334e-05/0.4631, allocations: 41.62 kB / 0.5708 GB, free: 2.816 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.4631, allocations: 4.281 kB / 0.5708 GB, free: 2.812 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001271/0.4644, allocations: 442.1 kB / 0.5712 GB, free: 2.375 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001132/0.4655, allocations: 255.6 kB / 0.5714 GB, free: 2.125 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009062/0.4746, allocations: 6.598 MB / 0.5779 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001047/0.4757, allocations: 71.92 kB / 0.578 GB, free: 11.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001799/0.4759, allocations: 48.05 kB / 0.578 GB, free: 11.12 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,disturbance.count,$PRE.disturbance.count,disturbance.T_start,$PRE.disturbance.T_start,$whenCondition1,$whenCondition2,frequencyPowerControl.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,9), (2,29)} Notification: Performance of prepare postOptimizeDAE: time 0.0004487/0.4763, allocations: 259.9 kB / 0.5782 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002529/0.4766, allocations: 99.39 kB / 0.5783 GB, free: 10.76 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004745/0.4813, allocations: 2.161 MB / 0.5805 GB, free: 8.578 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.649e-05/0.4814, allocations: 16 kB / 0.5805 GB, free: 8.562 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.466e-05/0.4814, allocations: 3.984 kB / 0.5805 GB, free: 8.559 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.725e-05/0.4814, allocations: 7.969 kB / 0.5805 GB, free: 8.551 MB / 446.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007676/0.4891, allocations: 3.934 MB / 0.5843 GB, free: 4.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.747e-06/0.4891, allocations: 0 / 0.5843 GB, free: 4.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009382/0.4901, allocations: 207.7 kB / 0.5845 GB, free: 4.297 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001653/0.4917, allocations: 0.5052 MB / 0.585 GB, free: 3.785 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001209/0.4919, allocations: 35.98 kB / 0.585 GB, free: 3.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01037/0.5023, allocations: 7.126 MB / 0.592 GB, free: 12.32 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/0.5023, allocations: 4 kB / 0.592 GB, free: 12.31 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006119/0.5084, allocations: 3.084 MB / 0.595 GB, free: 9.172 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007021/0.5092, allocations: 292.3 kB / 0.5953 GB, free: 8.867 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002297/0.5094, allocations: 28.17 kB / 0.5953 GB, free: 8.84 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009022/0.5103, allocations: 71.92 kB / 0.5954 GB, free: 8.77 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003295/0.5107, allocations: 140.8 kB / 0.5955 GB, free: 8.629 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/0.5108, allocations: 43.98 kB / 0.5956 GB, free: 8.586 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005881/0.5114, allocations: 399 kB / 0.596 GB, free: 8.203 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5114, allocations: 0 / 0.596 GB, free: 8.203 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002503/0.5139, allocations: 0.6641 MB / 0.5966 GB, free: 7.539 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 4 (inertia1.phi,inertia1.w,frequencyPowerControl.I.y,system.theta) * Number of discrete variables: 5 (system.initime,$whenCondition2,$whenCondition1,disturbance.T_start,disturbance.count) * Number of discrete states: 1 (disturbance.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,40), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006371/0.5203, allocations: 3.667 MB / 0.6002 GB, free: 3.809 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006066/0.5264, allocations: 3.343 MB / 0.6034 GB, free: 404 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.5264, allocations: 0 / 0.6034 GB, free: 404 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002463/0.5289, allocations: 1.323 MB / 0.6047 GB, free: 15.04 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001359/0.5303, allocations: 196.7 kB / 0.6049 GB, free: 14.86 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02058/0.5509, allocations: 10.72 MB / 0.6154 GB, free: 3.867 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001444/0.5523, allocations: 1.26 MB / 0.6166 GB, free: 2.578 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001009/0.5534, allocations: 303 kB / 0.6169 GB, free: 2.277 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008044/0.5542, allocations: 447.2 kB / 0.6173 GB, free: 1.84 MB / 478.1 MB Notification: Performance of SimCode: time 1.253e-06/0.5542, allocations: 0 / 0.6173 GB, free: 1.84 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08866/0.6429, allocations: 32.6 MB / 0.6492 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.99/16.63, allocations: 14.36 kB / 0.6492 GB, free: 1.414 MB / 0.4981 GB (rm -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Network_NetworkControlled_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Network_NetworkControlled.fmu > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1)