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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled") translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007916/0.0007916, allocations: 92.97 kB / 16.95 MB, free: 5.641 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.0008492/0.0008492, allocations: 184.7 kB / 17.85 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.634/1.634, allocations: 205.4 MB / 224 MB, free: 13.03 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.168/0.168, allocations: 38.04 MB / 310.3 MB, free: 6 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004997/0.0004997, allocations: 12 kB / 377.1 MB, free: 3.074 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.2892, allocations: 56.33 MB / 433.5 MB, free: 18.81 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.006674/0.296, allocations: 8.816 MB / 442.3 MB, free: 9.969 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006077/0.3021, allocations: 5.192 MB / 447.5 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008691/0.303, allocations: 31.88 kB / 447.5 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004801/0.3035, allocations: 198.4 kB / 447.7 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00195/0.3054, allocations: 1.023 MB / 448.7 MB, free: 3.504 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001127/0.3066, allocations: 477.5 kB / 449.2 MB, free: 3.043 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001721/0.3083, allocations: 2.475 MB / 451.7 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00204/0.3104, allocations: 1.405 MB / 453.1 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001094/0.3115, allocations: 0.6648 MB / 453.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001042/0.3125, allocations: 0.8563 MB / 454.6 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.194e-05/0.3126, allocations: 48 kB / 454.6 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00174/0.3144, allocations: 0.8415 MB / 455.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004754/0.3148, allocations: 0.5142 MB / 456 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000249/0.3151, allocations: 249 kB / 456.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001495/0.3166, allocations: 1.45 MB / 457.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.3166, allocations: 0 / 457.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.3166, allocations: 0 / 457.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.3167, allocations: 4 kB / 457.7 MB, free: 10.46 MB / 334.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.002313/0.319, allocations: 1.451 MB / 459.1 MB, free: 8.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.319, allocations: 12.03 kB / 459.2 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003087/0.3221, allocations: 489.7 kB / 459.6 MB, free: 8.461 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000987/0.3231, allocations: 0.6502 MB / 460.3 MB, free: 7.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.694e-05/0.3232, allocations: 82.16 kB / 460.4 MB, free: 7.688 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001818/0.3234, allocations: 111.9 kB / 460.5 MB, free: 7.578 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002516/0.3259, allocations: 1.612 MB / 462.1 MB, free: 5.906 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.673e-05/0.326, allocations: 7.891 kB / 462.1 MB, free: 5.898 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001076/0.3261, allocations: 51.97 kB / 462.1 MB, free: 5.848 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001125/0.3262, allocations: 90.2 kB / 462.2 MB, free: 5.758 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002674/0.3289, allocations: 1.648 MB / 463.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007144/0.336, allocations: 4.988 MB / 468.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002067/0.3381, allocations: 1.358 MB / 470.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001241/0.3394, allocations: 0.8093 MB / 471 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.657e-05/0.3395, allocations: 24.98 kB / 471.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001359/0.3409, allocations: 0.849 MB / 471.9 MB, free: 11.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=126): time 3.256e-06/0.3409, allocations: 0 / 471.9 MB, free: 11.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=137): time 0.01273/0.3536, allocations: 6.381 MB / 478.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.442e-05/0.3537, allocations: 116.1 kB / 478.4 MB, free: 5.258 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007036/0.3545, allocations: 0.5704 MB / 479 MB, free: 4.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.695e-05/0.3545, allocations: 49.7 kB / 479 MB, free: 4.625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003871/0.3549, allocations: 484.2 kB / 479.5 MB, free: 4.145 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003982/0.3553, allocations: 465.2 kB / 479.9 MB, free: 3.684 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.308e-05/0.3554, allocations: 28 kB / 480 MB, free: 3.656 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.3556, allocations: 406.7 kB / 480.4 MB, free: 3.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001027/0.3567, allocations: 0.6271 MB / 481 MB, free: 2.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001139/0.3578, allocations: 0.7832 MB / 481.8 MB, free: 1.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001195/0.359, allocations: 0.7459 MB / 482.5 MB, free: 1.047 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.359, allocations: 0 / 482.5 MB, free: 1.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.003759/0.3628, allocations: 2.126 MB / 484.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001654/0.363, allocations: 202.5 kB / 484.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.363, allocations: 4 kB / 484.9 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001253/0.3643, allocations: 465.3 kB / 485.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001014/0.3653, allocations: 267.6 kB / 485.6 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00811/0.3734, allocations: 6.275 MB / 491.8 MB, free: 7.383 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009213/0.3744, allocations: 87.91 kB / 491.9 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001011/0.3745, allocations: 52.05 kB / 492 MB, free: 7.246 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.596e-06/0.3745, allocations: 4 kB / 492 MB, free: 7.242 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00334/0.3778, allocations: 1.919 MB / 493.9 MB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.3779, allocations: 8 kB / 493.9 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/0.3789, allocations: 442.4 kB / 494.3 MB, free: 4.863 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009764/0.3799, allocations: 259.6 kB / 494.6 MB, free: 4.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007322/0.3872, allocations: 6.041 MB / 0.4889 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000996/0.3882, allocations: 79.91 kB / 0.489 GB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.98e-05/0.3883, allocations: 51.98 kB / 0.489 GB, free: 14.16 MB / 382.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,$whenCondition2,$whenCondition1,$PRE.disturbance.T_start,disturbance.T_start,$PRE.disturbance.count,disturbance.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,2 29} Notification: Performance of prepare postOptimizeDAE: time 0.0006981/0.389, allocations: 432.8 kB / 0.4894 GB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001597/0.3892, allocations: 98.84 kB / 0.4895 GB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004069/0.3933, allocations: 2.188 MB / 0.4917 GB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.3933, allocations: 16 kB / 0.4917 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.3933, allocations: 0 / 0.4917 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-05/0.3934, allocations: 11.97 kB / 0.4917 GB, free: 11.39 MB / 382.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.006721/0.4001, allocations: 3.967 MB / 0.4956 GB, free: 7.305 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.4001, allocations: 0 / 0.4956 GB, free: 7.305 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000844/0.401, allocations: 219.7 kB / 0.4958 GB, free: 7.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001502/0.4025, allocations: 0.5053 MB / 0.4963 GB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.76e-05/0.4026, allocations: 31.98 kB / 0.4963 GB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008718/0.4113, allocations: 6.532 MB / 0.5027 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.4113, allocations: 4 kB / 0.5027 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005386/0.4167, allocations: 3.109 MB / 0.5057 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006238/0.4174, allocations: 287.8 kB / 0.506 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001255/0.4175, allocations: 24 kB / 0.506 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006626/0.4182, allocations: 87.98 kB / 0.5061 GB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002978/0.4185, allocations: 129 kB / 0.5062 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001762/0.4187, allocations: 47.98 kB / 0.5063 GB, free: 11.97 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006082/0.4193, allocations: 395.1 kB / 0.5067 GB, free: 11.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4193, allocations: 0 / 0.5067 GB, free: 11.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002002/0.4213, allocations: 0.664 MB / 0.5073 GB, free: 10.92 MB / 398.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 40,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002099/0.4215, allocations: 142.5 kB / 0.5074 GB, free: 10.78 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005681/0.4272, allocations: 3.347 MB / 0.5107 GB, free: 7.355 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.253e-06/0.4272, allocations: 0 / 0.5107 GB, free: 7.355 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002094/0.4293, allocations: 1.319 MB / 0.512 GB, free: 6.008 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000961/0.4303, allocations: 175.9 kB / 0.5122 GB, free: 5.84 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004829/0.4352, allocations: 3.266 MB / 0.5154 GB, free: 2.508 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001029/0.4362, allocations: 1.264 MB / 0.5166 GB, free: 1.215 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003122/0.4365, allocations: 91.39 kB / 0.5167 GB, free: 1.125 MB / 398.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4365, allocations: 0 / 0.5167 GB, free: 1.125 MB / 398.1 MB Notification: Performance of Templates: time 0.2461/0.6826, allocations: 23.33 MB / 0.5395 GB, free: 73.52 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.makefile make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlledCalcHelperMain.o OMCppPowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlledCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlledCalcHelperMain.o] Error 1