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.001045/0.001045, allocations: 93.05 kB / 16.3 MB, free: 5.996 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.0009497/0.0009497, allocations: 184.6 kB / 17.2 MB, free: 5.914 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.239/1.239, allocations: 223.2 MB / 241.1 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2584/0.2584, allocations: 38.08 MB / 330.3 MB, free: 14.21 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002733/0.0002734, allocations: 8 kB / 400 MB, free: 9.273 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.2434, allocations: 59.16 MB / 459.1 MB, free: 30.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.004911/0.2483, allocations: 5.01 MB / 464.1 MB, free: 26.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003418/0.2518, allocations: 2.184 MB / 466.3 MB, free: 25.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006497/0.2524, allocations: 31.91 kB / 466.4 MB, free: 25.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004081/0.2529, allocations: 102 kB / 466.5 MB, free: 25.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008527/0.2537, allocations: 316.1 kB / 466.8 MB, free: 24.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001046/0.2548, allocations: 382.1 kB / 467.1 MB, free: 24.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007357/0.2555, allocations: 0.582 MB / 467.7 MB, free: 24.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009008/0.2564, allocations: 0.6197 MB / 468.3 MB, free: 24.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004192/0.2569, allocations: 291.8 kB / 468.6 MB, free: 23.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003332/0.2572, allocations: 271.7 kB / 468.9 MB, free: 23.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.844e-05/0.2573, allocations: 23.28 kB / 468.9 MB, free: 23.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003915/0.2577, allocations: 157.9 kB / 469.1 MB, free: 23.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001409/0.2578, allocations: 148.4 kB / 469.2 MB, free: 23.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001071/0.2579, allocations: 151 kB / 469.4 MB, free: 23.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000816/0.2588, allocations: 0.7759 MB / 470.1 MB, free: 23.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.2588, allocations: 0 / 470.1 MB, free: 23.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.2588, allocations: 0 / 470.1 MB, free: 23.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.447e-05/0.2588, allocations: 1.531 kB / 470.1 MB, free: 23.37 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.001705/0.2605, allocations: 1.001 MB / 471.1 MB, free: 22.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.2606, allocations: 8.969 kB / 471.1 MB, free: 22.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008523/0.2614, allocations: 164.8 kB / 471.3 MB, free: 22.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008918/0.2623, allocations: 0.5587 MB / 471.9 MB, free: 22.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.419e-05/0.2624, allocations: 46.66 kB / 471.9 MB, free: 22.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.2625, allocations: 64.92 kB / 472 MB, free: 22.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001284/0.2638, allocations: 0.7553 MB / 472.7 MB, free: 21.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.444e-05/0.2638, allocations: 5.906 kB / 472.7 MB, free: 21.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.33e-05/0.2639, allocations: 22.5 kB / 472.8 MB, free: 21.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.747e-05/0.264, allocations: 32.77 kB / 472.8 MB, free: 21.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00121/0.2652, allocations: 0.6481 MB / 473.4 MB, free: 21.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003767/0.2689, allocations: 2.925 MB / 476.4 MB, free: 19.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/0.2705, allocations: 0.7654 MB / 477.1 MB, free: 18.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.693e-05/0.2705, allocations: 9.922 kB / 477.1 MB, free: 18.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/0.2706, allocations: 39.12 kB / 477.2 MB, free: 18.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.324e-06/0.2706, allocations: 0 / 477.2 MB, free: 18.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.001491/0.2721, allocations: 0.7284 MB / 477.9 MB, free: 18.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.254e-05/0.2721, allocations: 108.8 kB / 478 MB, free: 18.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007126/0.2728, allocations: 0.5891 MB / 478.6 MB, free: 18.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.016e-05/0.2729, allocations: 32.11 kB / 478.6 MB, free: 18.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002168/0.2731, allocations: 356.1 kB / 479 MB, free: 17.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/0.2732, allocations: 170.6 kB / 479.1 MB, free: 17.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.63e-05/0.2733, allocations: 10.41 kB / 479.2 MB, free: 17.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.2734, allocations: 378.9 kB / 479.5 MB, free: 17.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004302/0.2738, allocations: 214.8 kB / 479.7 MB, free: 17.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004916/0.2743, allocations: 346.9 kB / 480.1 MB, free: 16.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004867/0.2748, allocations: 255.6 kB / 480.3 MB, free: 16.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/0.2748, allocations: 3.969 kB / 480.3 MB, free: 16.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001628/0.2765, allocations: 0.816 MB / 481.1 MB, free: 16.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000301/0.2768, allocations: 1.402 MB / 482.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.2768, allocations: 3.469 kB / 482.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004596/0.2773, allocations: 140 kB / 482.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005041/0.2778, allocations: 131 kB / 482.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002436/0.2802, allocations: 2.307 MB / 485.1 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004351/0.2807, allocations: 79.05 kB / 485.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.191e-05/0.2807, allocations: 25.56 kB / 485.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.823e-06/0.2807, allocations: 3.469 kB / 485.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001125/0.2819, allocations: 0.6263 MB / 485.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.2819, allocations: 3.969 kB / 485.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002411/0.2821, allocations: 107.6 kB / 486 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005135/0.2827, allocations: 129.9 kB / 486.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001429/0.2841, allocations: 2.055 MB / 488.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003699/0.2845, allocations: 79.47 kB / 488.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.261e-05/0.2845, allocations: 23.95 kB / 488.2 MB, free: 10.08 MB / 350.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 (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 {1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0003074/0.2848, allocations: 304.9 kB / 488.5 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.962e-05/0.2849, allocations: 63.25 kB / 488.6 MB, free: 9.707 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009353/0.2859, allocations: 0.581 MB / 489.2 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.2859, allocations: 4 kB / 489.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.2859, allocations: 0 / 489.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.2859, allocations: 4 kB / 489.2 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001548/0.2874, allocations: 1.333 MB / 490.5 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2875, allocations: 0 / 490.5 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004819/0.2879, allocations: 115.9 kB / 490.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.288, allocations: 4 kB / 490.6 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.258e-05/0.288, allocations: 15.98 kB / 490.7 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.288, allocations: 3.953 kB / 490.7 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.288, allocations: 0 / 490.7 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001206/0.2892, allocations: 0.9459 MB / 491.6 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001717/0.2894, allocations: 192.1 kB / 491.8 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.868e-05/0.2895, allocations: 15.95 kB / 491.8 MB, free: 6.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003327/0.2898, allocations: 43.95 kB / 491.9 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.882e-05/0.2899, allocations: 40.38 kB / 491.9 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.644e-05/0.2899, allocations: 12 kB / 491.9 MB, free: 6.301 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004363/0.2904, allocations: 423 kB / 492.3 MB, free: 5.891 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.2904, allocations: 0 / 492.3 MB, free: 5.891 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007378/0.2911, allocations: 259.3 kB / 492.6 MB, free: 5.637 MB / 350.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 (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.0001022/0.2912, allocations: 115.2 kB / 492.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00147/0.2927, allocations: 1.103 MB / 493.8 MB, free: 4.391 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.2927, allocations: 3.938 kB / 493.8 MB, free: 4.387 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003848/0.2931, allocations: 262.5 kB / 494 MB, free: 4.129 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005557/0.2937, allocations: 130.9 kB / 494.2 MB, free: 4.008 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002095/0.2958, allocations: 1.791 MB / 496 MB, free: 2.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003003/0.2961, allocations: 0.9577 MB / 496.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003488/0.2965, allocations: 120.6 kB / 497 MB, free: 1.074 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/0.2966, allocations: 39.44 kB / 497.1 MB, free: 1.035 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2966, allocations: 0 / 497.1 MB, free: 1.035 MB / 350.1 MB Notification: Performance of Templates: time 0.01184/0.3084, allocations: 7.404 MB / 0.4927 GB, free: 9.676 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches