Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.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.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008853/0.0008857, allocations: 94.98 kB / 16.95 MB, free: 5.953 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.0009089/0.0009092, allocations: 184.9 kB / 17.84 MB, free: 5.613 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.679/1.679, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1817/0.1817, allocations: 38.04 MB / 310.3 MB, free: 6.047 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.0006198/0.0006199, allocations: 12 kB / 377.1 MB, free: 3.117 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.2985, allocations: 56.33 MB / 433.5 MB, free: 18.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.008693/0.3073, allocations: 9.387 MB / 442.9 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00633/0.3137, allocations: 3.481 MB / 446.3 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001557/0.3153, allocations: 67.56 kB / 446.4 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000908/0.3162, allocations: 285.9 kB / 446.7 MB, free: 5.582 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002144/0.3183, allocations: 0.7735 MB / 447.5 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001142/0.3195, allocations: 421.6 kB / 447.9 MB, free: 4.398 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001832/0.3213, allocations: 2.011 MB / 449.9 MB, free: 2.375 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001116/0.3225, allocations: 0.8646 MB / 450.7 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006834/0.3232, allocations: 0.5871 MB / 451.3 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007866/0.324, allocations: 0.7238 MB / 452.1 MB, free: 156 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.498e-05/0.3241, allocations: 56 kB / 452.1 MB, free: 100 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005593/0.3246, allocations: 283.5 kB / 452.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003955/0.325, allocations: 410.8 kB / 452.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002559/0.3253, allocations: 265 kB / 453 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001452/0.3268, allocations: 1.523 MB / 454.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.3268, allocations: 0 / 454.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3268, allocations: 0 / 454.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.509e-05/0.3268, allocations: 0 / 454.6 MB, free: 13.62 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: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.002843/0.3297, allocations: 1.425 MB / 456 MB, free: 12.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.3297, allocations: 12.03 kB / 456 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006865/0.3304, allocations: 190.2 kB / 456.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001518/0.3319, allocations: 0.8791 MB / 457.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.534e-05/0.332, allocations: 90 kB / 457.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002584/0.3323, allocations: 119.9 kB / 457.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002201/0.3345, allocations: 1.349 MB / 458.6 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.021e-05/0.3346, allocations: 0 / 458.6 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001112/0.3347, allocations: 47.98 kB / 458.7 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001048/0.3348, allocations: 65.97 kB / 458.7 MB, free: 9.277 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001775/0.3366, allocations: 1.081 MB / 459.8 MB, free: 8.199 MB / 334.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 0.000124777475384046 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006871/0.3434, allocations: 5.149 MB / 465 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/0.3447, allocations: 0.7578 MB / 465.7 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005307/0.3452, allocations: 348.2 kB / 466.1 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.669e-05/0.3453, allocations: 16.53 kB / 466.1 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.334e-05/0.3453, allocations: 47.06 kB / 466.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of pre-optimization done (n=64): time 3.697e-06/0.3454, allocations: 0 / 466.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of matching and sorting (n=71): time 0.005283/0.3506, allocations: 2.704 MB / 468.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.125e-05/0.3507, allocations: 141.1 kB / 469 MB, free: 14.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008965/0.3516, allocations: 0.7433 MB / 469.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.447e-05/0.3517, allocations: 41.7 kB / 469.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004388/0.3521, allocations: 0.565 MB / 470.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002465/0.3524, allocations: 252.3 kB / 470.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.43e-05/0.3525, allocations: 16 kB / 470.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.3526, allocations: 349.9 kB / 470.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005023/0.3531, allocations: 293.8 kB / 471.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007186/0.3539, allocations: 0.5488 MB / 471.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006578/0.3545, allocations: 387 kB / 472.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.3546, allocations: 0 / 472.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002794/0.3574, allocations: 1.367 MB / 473.5 MB, free: 9.918 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000266/0.3576, allocations: 325.9 kB / 473.8 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.654e-05/0.3577, allocations: 11.95 kB / 473.8 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001352/0.359, allocations: 440.5 kB / 474.3 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005982/0.3596, allocations: 167.7 kB / 474.4 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007889/0.3675, allocations: 4.927 MB / 479.4 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000799/0.3684, allocations: 43.91 kB / 479.4 MB, free: 3.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-05/0.3685, allocations: 36 kB / 479.4 MB, free: 3.734 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.3685, allocations: 8 kB / 479.4 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002278/0.3708, allocations: 1.152 MB / 480.6 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.3708, allocations: 8 kB / 480.6 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001149/0.3719, allocations: 401.1 kB / 481 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005862/0.3726, allocations: 167.7 kB / 481.2 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006843/0.3794, allocations: 4.634 MB / 485.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007084/0.3801, allocations: 39.98 kB / 485.8 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.868e-05/0.3802, allocations: 36 kB / 485.9 MB, free: 13.15 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_vDC.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {7 25} Notification: Performance of prepare postOptimizeDAE: time 0.0008432/0.3811, allocations: 436.7 kB / 486.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001845/0.3813, allocations: 98.81 kB / 486.4 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001453/0.3827, allocations: 0.8718 MB / 487.3 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.777e-06/0.3827, allocations: 8 kB / 487.3 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3827, allocations: 0 / 487.3 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.3828, allocations: 7.984 kB / 487.3 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00312/0.3859, allocations: 1.865 MB / 489.1 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.3859, allocations: 0 / 489.1 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008137/0.3867, allocations: 167.8 kB / 489.3 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-05/0.3867, allocations: 4 kB / 489.3 MB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.287e-05/0.3868, allocations: 23.98 kB / 489.3 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.591e-06/0.3868, allocations: 0 / 489.3 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.3868, allocations: 4 kB / 489.3 MB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001908/0.3887, allocations: 1.274 MB / 490.6 MB, free: 8.281 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000351/0.3891, allocations: 231.8 kB / 490.8 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.3892, allocations: 24 kB / 490.9 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004069/0.3896, allocations: 27.98 kB / 490.9 MB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.376e-05/0.3897, allocations: 40.59 kB / 490.9 MB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.57e-05/0.3898, allocations: 27.98 kB / 491 MB, free: 7.918 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008059/0.3906, allocations: 0.5029 MB / 491.5 MB, free: 7.422 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3906, allocations: 0 / 491.5 MB, free: 7.422 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001834/0.3924, allocations: 471.9 kB / 491.9 MB, free: 6.961 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.rotor.phi,PMgen.rotor.w,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004298/0.3929, allocations: 144.9 kB / 492.1 MB, free: 6.816 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003589/0.3965, allocations: 1.904 MB / 494 MB, free: 4.887 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.3965, allocations: 0 / 494 MB, free: 4.887 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005529/0.397, allocations: 356.9 kB / 494.3 MB, free: 4.543 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001141/0.3982, allocations: 231.6 kB / 494.5 MB, free: 4.312 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004717/0.4029, allocations: 3.131 MB / 497.7 MB, free: 1.145 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009074/0.4038, allocations: 1.201 MB / 498.9 MB, free: 15.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002256/0.4041, allocations: 75.42 kB / 498.9 MB, free: 15.84 MB / 382.1 MB Notification: Performance of SimCode: time 1.272e-06/0.4041, allocations: 4 kB / 498.9 MB, free: 15.83 MB / 382.1 MB Notification: Performance of Templates: time 0.0266/0.4307, allocations: 17.04 MB / 0.5039 GB, free: 14.77 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.makefile make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.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.AC3ph.Generation.LocalGenerationCalcHelperMain.o OMCppPowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGenerationCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGenerationCalcHelperMain.o] Error 1