Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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: translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|powerPlant.P_generator|powerPlant.frequency.y|powerPlant.fuel.y|powerPlant.primaryControl.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|powerPlant.P_generator|powerPlant.frequency.y|powerPlant.fuel.y|powerPlant.primaryControl.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001095/0.001096, allocations: 104.8 kB / 17.16 MB, free: 6.082 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.001007/0.001007, allocations: 198.9 kB / 18.08 MB, free: 5.285 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.352/1.352, allocations: 222.9 MB / 241.7 MB, free: 13.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1698/0.1698, allocations: 38.03 MB / 329.9 MB, free: 8.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 60.53 kB / 398.7 MB, free: 34.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1095, allocations: 58.06 MB / 456.8 MB, free: 8.512 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.00744/0.117, allocations: 5.82 MB / 462.6 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003886/0.121, allocations: 2.354 MB / 465 MB, free: 304 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008387/0.1218, allocations: 31.81 kB / 465 MB, free: 272 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001283/0.1231, allocations: 236.5 kB / 465.2 MB, free: 36 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001235/0.1244, allocations: 306.7 kB / 465.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001161/0.1255, allocations: 462.5 kB / 466 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001178/0.1267, allocations: 1.127 MB / 467.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007543/0.1275, allocations: 0.5126 MB / 467.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004066/0.1279, allocations: 330.4 kB / 467.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003946/0.1283, allocations: 382.1 kB / 468.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.087e-05/0.1284, allocations: 40 kB / 468.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006137/0.129, allocations: 391.1 kB / 468.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001739/0.1292, allocations: 175.3 kB / 468.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002833/0.1295, allocations: 353.8 kB / 469.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007143/0.1302, allocations: 0.8108 MB / 470.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.1302, allocations: 0 / 470.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1303, allocations: 0 / 470.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.1303, allocations: 4 kB / 470.1 MB, free: 11.16 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001923/0.1322, allocations: 1.122 MB / 471.2 MB, free: 9.992 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.1322, allocations: 8.031 kB / 471.2 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008064/0.1331, allocations: 167.7 kB / 471.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008209/0.1339, allocations: 0.5735 MB / 471.9 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.211e-05/0.1339, allocations: 45.69 kB / 472 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.38e-05/0.134, allocations: 60.38 kB / 472 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.1352, allocations: 0.7642 MB / 472.8 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/0.1353, allocations: 0 / 472.8 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.946e-05/0.1353, allocations: 28 kB / 472.8 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.033e-05/0.1354, allocations: 29.25 kB / 472.9 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001115/0.1365, allocations: 0.6257 MB / 473.5 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003741/0.1403, allocations: 2.914 MB / 476.4 MB, free: 4.586 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/0.1415, allocations: 0.7109 MB / 477.1 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004292/0.142, allocations: 231 kB / 477.3 MB, free: 3.609 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.884e-05/0.142, allocations: 12.42 kB / 477.3 MB, free: 3.598 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.697e-05/0.1421, allocations: 39 kB / 477.4 MB, free: 3.547 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.753e-06/0.1421, allocations: 0 / 477.4 MB, free: 3.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.001639/0.1437, allocations: 0.6902 MB / 478.1 MB, free: 2.855 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.409e-05/0.1438, allocations: 119.2 kB / 478.2 MB, free: 2.715 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007738/0.1446, allocations: 0.5823 MB / 478.8 MB, free: 2.125 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.183e-05/0.1447, allocations: 37.7 kB / 478.8 MB, free: 2.082 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002732/0.1449, allocations: 352.4 kB / 479.2 MB, free: 1.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/0.1451, allocations: 173.5 kB / 479.3 MB, free: 1.559 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001561/0.1452, allocations: 106.2 kB / 479.4 MB, free: 1.449 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.1454, allocations: 378.8 kB / 479.8 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004484/0.1459, allocations: 218.9 kB / 480 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000513/0.1464, allocations: 340.5 kB / 480.3 MB, free: 484 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009155/0.1473, allocations: 0.5451 MB / 480.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.1473, allocations: 11.97 kB / 480.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001572/0.1489, allocations: 0.7807 MB / 481.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.1489, allocations: 8 kB / 481.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.149, allocations: 8.391 kB / 481.7 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004001/0.1494, allocations: 112.8 kB / 481.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005186/0.1499, allocations: 131.8 kB / 481.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002672/0.1526, allocations: 2.21 MB / 484.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004144/0.153, allocations: 83.23 kB / 484.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.155e-05/0.1531, allocations: 24.06 kB / 484.3 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006075/0.1537, allocations: 369.1 kB / 484.6 MB, free: 12.01 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004808/0.1542, allocations: 328.5 kB / 484.9 MB, free: 11.63 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008475/0.155, allocations: 0.5256 MB / 485.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.954e-06/0.155, allocations: 4 kB / 485.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization_lambda0): time 0.001276/0.1563, allocations: 0.6949 MB / 486.2 MB, free: 10.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.063e-05/0.1563, allocations: 11.94 kB / 486.2 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.1563, allocations: 7.984 kB / 486.2 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002605/0.1566, allocations: 96.84 kB / 486.3 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004942/0.1571, allocations: 136.2 kB / 486.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00194/0.1591, allocations: 2.011 MB / 488.4 MB, free: 7.941 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004026/0.1595, allocations: 67.5 kB / 488.5 MB, free: 7.875 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.886e-05/0.1595, allocations: 23.98 kB / 488.5 MB, free: 7.852 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002016/0.1597, allocations: 216.1 kB / 488.7 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/0.1598, allocations: 67.16 kB / 488.8 MB, free: 7.566 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001121/0.161, allocations: 0.5654 MB / 489.3 MB, free: 7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.161, allocations: 8 kB / 489.4 MB, free: 6.992 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-06/0.161, allocations: 4 kB / 489.4 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.161, allocations: 3.984 kB / 489.4 MB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001935/0.163, allocations: 1.322 MB / 490.7 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.163, allocations: 0 / 490.7 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005164/0.1635, allocations: 108.1 kB / 490.8 MB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.1635, allocations: 3.984 kB / 490.8 MB, free: 5.496 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.913e-05/0.1636, allocations: 19.88 kB / 490.8 MB, free: 5.477 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.1636, allocations: 4 kB / 490.8 MB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1636, allocations: 0 / 490.8 MB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001446/0.165, allocations: 0.9015 MB / 491.7 MB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002033/0.1652, allocations: 196 kB / 491.9 MB, free: 4.344 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.463e-05/0.1653, allocations: 19.92 kB / 491.9 MB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003413/0.1657, allocations: 27.97 kB / 492 MB, free: 4.297 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.507e-05/0.1658, allocations: 40.39 kB / 492 MB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-05/0.1658, allocations: 11.98 kB / 492 MB, free: 4.246 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000553/0.1664, allocations: 427 kB / 492.4 MB, free: 3.832 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1664, allocations: 0 / 492.4 MB, free: 3.832 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008224/0.1672, allocations: 267.2 kB / 492.7 MB, free: 3.57 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (powerPlant.rotor.phi,powerPlant.rotor.w,powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.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 (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001286/0.1673, allocations: 115.3 kB / 492.8 MB, free: 3.449 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001832/0.1692, allocations: 1.084 MB / 493.9 MB, free: 2.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1692, allocations: 0 / 493.9 MB, free: 2.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000452/0.1696, allocations: 254.3 kB / 494.1 MB, free: 2.094 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007432/0.1704, allocations: 142.1 kB / 494.3 MB, free: 1.965 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002771/0.1732, allocations: 1.828 MB / 496.1 MB, free: 96 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005225/0.1737, allocations: 0.942 MB / 497 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001637/0.1739, allocations: 47.44 kB / 497.1 MB, free: 15.08 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1739, allocations: 0 / 497.1 MB, free: 15.08 MB / 382.1 MB Notification: Performance of Templates: time 0.01222/0.1861, allocations: 9.763 MB / 0.495 GB, free: 5.328 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -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/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1CalcHelperMain.o OMCppPowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1CalcHelperMain.o] Error 1