Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.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.PowerPlantTest3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|powerPlant.P_generator|powerPlant.frequency.y|powerPlant.fuel.y|powerPlant.throttling.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|powerPlant.P_generator|powerPlant.frequency.y|powerPlant.fuel.y|powerPlant.throttling.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006846/0.0006848, allocations: 91.27 kB / 16.65 MB, free: 6.594 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.000724/0.000724, allocations: 182.6 kB / 17.56 MB, free: 6.203 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.231/1.231, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1589/0.1589, allocations: 38.09 MB / 330.8 MB, free: 8.527 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002938/0.0002939, allocations: 12 kB / 400.7 MB, free: 34.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09506/0.09537, allocations: 59.16 MB / 459.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3): time 0.006806/0.1022, allocations: 6.076 MB / 466 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004387/0.1066, allocations: 2.856 MB / 468.8 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008326/0.1075, allocations: 39.75 kB / 468.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005931/0.1081, allocations: 111.1 kB / 469 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00129/0.1094, allocations: 426.2 kB / 469.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001848/0.1113, allocations: 0.5103 MB / 469.9 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00235/0.1137, allocations: 1.389 MB / 471.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001719/0.1154, allocations: 0.8448 MB / 472.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007285/0.1161, allocations: 354.2 kB / 472.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007083/0.1169, allocations: 409.9 kB / 472.9 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001511/0.117, allocations: 28 kB / 472.9 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001086/0.1181, allocations: 0.5768 MB / 473.5 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003253/0.1185, allocations: 195.2 kB / 473.7 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005475/0.119, allocations: 387.3 kB / 474 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001529/0.1205, allocations: 1.179 MB / 475.2 MB, free: 7.594 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1206, allocations: 0 / 475.2 MB, free: 7.594 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1206, allocations: 3.938 kB / 475.2 MB, free: 7.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.425e-05/0.1206, allocations: 0 / 475.2 MB, free: 7.59 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.002326/0.123, allocations: 1.056 MB / 476.3 MB, free: 6.484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.123, allocations: 8.031 kB / 476.3 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001348/0.1244, allocations: 203.6 kB / 476.5 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001121/0.1255, allocations: 0.6163 MB / 477.1 MB, free: 5.621 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.708e-05/0.1256, allocations: 49.69 kB / 477.2 MB, free: 5.574 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001694/0.1257, allocations: 68.28 kB / 477.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001627/0.1274, allocations: 0.9016 MB / 478.1 MB, free: 4.562 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.533e-05/0.1274, allocations: 4 kB / 478.1 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.012e-05/0.1275, allocations: 32 kB / 478.2 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.794e-05/0.1275, allocations: 33.3 kB / 478.2 MB, free: 4.492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001539/0.1291, allocations: 0.8092 MB / 479 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005044/0.1341, allocations: 3.276 MB / 482.3 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002214/0.1364, allocations: 0.9954 MB / 483.3 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006529/0.1371, allocations: 319.3 kB / 483.6 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.691e-05/0.1371, allocations: 12.53 kB / 483.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.1372, allocations: 39.12 kB / 483.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 2.274e-06/0.1372, allocations: 0 / 483.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.005689/0.1429, allocations: 2.623 MB / 486.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.286e-05/0.1429, allocations: 111.4 kB / 486.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001125/0.1441, allocations: 0.5743 MB / 486.9 MB, free: 11.4 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.09e-05/0.1441, allocations: 45.73 kB / 487 MB, free: 11.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003157/0.1445, allocations: 368.2 kB / 487.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/0.1447, allocations: 212.9 kB / 487.6 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001743/0.1448, allocations: 65.67 kB / 487.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002391/0.1451, allocations: 378.8 kB / 488 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00059/0.1457, allocations: 281.8 kB / 488.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006942/0.1464, allocations: 437.8 kB / 488.7 MB, free: 9.562 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/0.1478, allocations: 0.72 MB / 489.4 MB, free: 8.785 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1478, allocations: 0 / 489.4 MB, free: 8.785 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001611/0.1494, allocations: 0.8583 MB / 490.3 MB, free: 7.918 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001257/0.1496, allocations: 213.1 kB / 490.5 MB, free: 7.652 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.1496, allocations: 4 kB / 490.5 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002564/0.1499, allocations: 56.81 kB / 490.5 MB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007089/0.1506, allocations: 187.7 kB / 490.7 MB, free: 7.406 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00161/0.1522, allocations: 1.63 MB / 492.3 MB, free: 5.645 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004677/0.1527, allocations: 60.02 kB / 492.4 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.566e-05/0.1527, allocations: 27.94 kB / 492.4 MB, free: 5.559 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.833e-06/0.1527, allocations: 4 kB / 492.4 MB, free: 5.555 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001428/0.1542, allocations: 0.7477 MB / 493.2 MB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.1542, allocations: 4 kB / 493.2 MB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001937/0.1544, allocations: 56.81 kB / 493.2 MB, free: 4.742 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006462/0.1551, allocations: 176.1 kB / 493.4 MB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0014/0.1565, allocations: 1.623 MB / 495 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004398/0.1569, allocations: 56.02 kB / 495.1 MB, free: 2.754 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.253e-05/0.157, allocations: 24 kB / 495.1 MB, free: 2.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (80): * Single equations (assignments): 79 * 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,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003594/0.1573, allocations: 324.8 kB / 495.4 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.1575, allocations: 75.08 kB / 495.5 MB, free: 2.328 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00162/0.1591, allocations: 0.7997 MB / 496.3 MB, free: 1.52 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.1591, allocations: 7.938 kB / 496.3 MB, free: 1.512 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.1591, allocations: 8 kB / 496.3 MB, free: 1.504 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.1591, allocations: 7.922 kB / 496.3 MB, free: 1.496 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003837/0.163, allocations: 2.197 MB / 498.5 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.197e-06/0.163, allocations: 12.03 kB / 498.5 MB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005357/0.1635, allocations: 131.8 kB / 498.7 MB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001895/0.1637, allocations: 56.81 kB / 498.7 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.243e-05/0.1638, allocations: 20 kB / 498.7 MB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001438/0.1652, allocations: 1.588 MB / 0.4886 GB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.1652, allocations: 12.06 kB / 0.4886 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002107/0.1674, allocations: 1.353 MB / 0.4899 GB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002258/0.1676, allocations: 204.1 kB / 0.4901 GB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.488e-05/0.1677, allocations: 23.98 kB / 0.4902 GB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004779/0.1682, allocations: 55.95 kB / 0.4902 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/0.1683, allocations: 75.69 kB / 0.4903 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-05/0.1683, allocations: 27.98 kB / 0.4903 GB, free: 11.35 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005388/0.1689, allocations: 419 kB / 0.4907 GB, free: 10.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1689, allocations: 0 / 0.4907 GB, free: 10.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009469/0.1699, allocations: 252 kB / 0.4909 GB, free: 10.7 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 7 (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 (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001463/0.17, allocations: 127.9 kB / 0.4911 GB, free: 10.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002201/0.1722, allocations: 1.29 MB / 0.4923 GB, free: 9.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.1722, allocations: 0 / 0.4923 GB, free: 9.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008691/0.1731, allocations: 0.5195 MB / 0.4928 GB, free: 8.719 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/0.1744, allocations: 169 kB / 0.493 GB, free: 8.555 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002648/0.1771, allocations: 2.087 MB / 0.495 GB, free: 6.355 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005416/0.1776, allocations: 0.9939 MB / 0.496 GB, free: 5.336 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004808/0.1781, allocations: 140.8 kB / 0.4961 GB, free: 5.199 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/0.1783, allocations: 47.44 kB / 0.4962 GB, free: 5.152 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1783, allocations: 0 / 0.4962 GB, free: 5.152 MB / 382.1 MB Notification: Performance of Templates: time 0.1983/0.3766, allocations: 7.864 MB / 0.5039 GB, free: 52.35 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches