Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 211.3 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.528/1.528, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1934/0.1934, allocations: 38.56 MB / 352.5 MB, free: 12.3 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002085/0.002085, allocations: 67.89 kB / 492.5 MB, free: 4.703 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3384/0.3405, allocations: 62.48 MB / 0.5419 GB, free: 236 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.006676/0.3471, allocations: 3.657 MB / 0.5455 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004354/0.3515, allocations: 2.057 MB / 0.5475 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000261/0.3517, allocations: 10.22 kB / 0.5475 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009451/0.3527, allocations: 242.6 kB / 0.5478 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008453/0.3535, allocations: 327.1 kB / 0.5481 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006734/0.3542, allocations: 249.8 kB / 0.5483 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007777/0.355, allocations: 0.5402 MB / 0.5488 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004571/0.3554, allocations: 198.8 kB / 0.549 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005781/0.356, allocations: 243.7 kB / 0.5493 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003963/0.3564, allocations: 216.5 kB / 0.5495 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.739e-05/0.3565, allocations: 40.81 kB / 0.5495 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007979/0.3573, allocations: 394.5 kB / 0.5499 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001771/0.3575, allocations: 133.6 kB / 0.55 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002052/0.3577, allocations: 157.5 kB / 0.5502 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00101/0.3587, allocations: 0.6884 MB / 0.5508 GB, free: 9.621 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3587, allocations: 4 kB / 0.5508 GB, free: 9.617 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3587, allocations: 0 / 0.5508 GB, free: 9.617 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.3587, allocations: 0 / 0.5508 GB, free: 9.617 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001478/0.3602, allocations: 0.7099 MB / 0.5515 GB, free: 9.012 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/0.3602, allocations: 13.61 kB / 0.5515 GB, free: 9.008 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001031/0.3603, allocations: 71.2 kB / 0.5516 GB, free: 8.938 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001017/0.3614, allocations: 104.3 kB / 0.5517 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006817/0.362, allocations: 328.5 kB / 0.552 GB, free: 8.613 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.735e-05/0.3621, allocations: 17.58 kB / 0.552 GB, free: 8.605 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.494e-05/0.3621, allocations: 31.92 kB / 0.5521 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.3632, allocations: 490.1 kB / 0.5525 GB, free: 8.258 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.3632, allocations: 1.281 kB / 0.5525 GB, free: 8.258 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.233e-05/0.3632, allocations: 15.2 kB / 0.5526 GB, free: 8.246 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.712e-05/0.3633, allocations: 18 kB / 0.5526 GB, free: 8.242 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001207/0.3645, allocations: 0.5483 MB / 0.5531 GB, free: 7.969 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002609/0.3671, allocations: 1.601 MB / 0.5547 GB, free: 6.637 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/0.3682, allocations: 397.7 kB / 0.5551 GB, free: 6.41 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003953/0.3686, allocations: 145.8 kB / 0.5552 GB, free: 6.328 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.3686, allocations: 3.469 kB / 0.5552 GB, free: 6.328 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006611/0.3693, allocations: 305.9 kB / 0.5555 GB, free: 6.086 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.575e-06/0.3693, allocations: 0 / 0.5555 GB, free: 6.086 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.00154/0.3708, allocations: 0.5673 MB / 0.556 GB, free: 5.547 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002325/0.3711, allocations: 290.7 kB / 0.5563 GB, free: 5.195 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005455/0.3716, allocations: 400.4 kB / 0.5567 GB, free: 4.797 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.284e-05/0.3717, allocations: 37.7 kB / 0.5567 GB, free: 4.754 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001825/0.3718, allocations: 196.6 kB / 0.5569 GB, free: 4.555 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.372, allocations: 111.1 kB / 0.557 GB, free: 4.445 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/0.3721, allocations: 73.64 kB / 0.5571 GB, free: 4.367 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002248/0.3723, allocations: 350.8 kB / 0.5574 GB, free: 4.016 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004387/0.3727, allocations: 177.6 kB / 0.5576 GB, free: 3.836 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005733/0.3733, allocations: 346.5 kB / 0.5579 GB, free: 3.426 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000935/0.3743, allocations: 486.2 kB / 0.5584 GB, free: 2.887 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.3743, allocations: 4 kB / 0.5584 GB, free: 2.883 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001255/0.3755, allocations: 0.5785 MB / 0.559 GB, free: 2.285 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.706e-05/0.3756, allocations: 37.7 kB / 0.559 GB, free: 2.242 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.3756, allocations: 4 kB / 0.559 GB, free: 2.238 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.3756, allocations: 4 kB / 0.559 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000339/0.3759, allocations: 83.88 kB / 0.5591 GB, free: 2.152 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.621e-05/0.3759, allocations: 11.94 kB / 0.5591 GB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000303/0.3762, allocations: 59.98 kB / 0.5592 GB, free: 2.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.615e-05/0.3763, allocations: 23.98 kB / 0.5592 GB, free: 2.059 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.windFarm.wind.nextTimeEvent,$whenCondition2,windFarm.disturbance.count,$PRE.windFarm.disturbance.count,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.T_start,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEvent,$whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002444/0.3765, allocations: 185.7 kB / 0.5594 GB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.178e-05/0.3766, allocations: 43.7 kB / 0.5594 GB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001115/0.3777, allocations: 468.6 kB / 0.5598 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.3777, allocations: 12 kB / 0.5599 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.3777, allocations: 0 / 0.5599 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.3778, allocations: 4 kB / 0.5599 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001398/0.3792, allocations: 1.006 MB / 0.5608 GB, free: 268 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.3792, allocations: 0 / 0.5608 GB, free: 268 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003045/0.3795, allocations: 75.89 kB / 0.5609 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.538e-06/0.3795, allocations: 7.938 kB / 0.5609 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.543e-05/0.3795, allocations: 16.17 kB / 0.5609 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.3795, allocations: 4 kB / 0.5609 GB, free: 164 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.324e-06/0.3795, allocations: 7.938 kB / 0.561 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/0.3807, allocations: 0.538 MB / 0.5615 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.398e-05/0.3808, allocations: 51.62 kB / 0.5615 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.008e-05/0.3808, allocations: 12 kB / 0.5615 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002251/0.3811, allocations: 31.97 kB / 0.5616 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.3812, allocations: 47.81 kB / 0.5616 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-05/0.3812, allocations: 15.98 kB / 0.5616 GB, free: 15.42 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003858/0.3816, allocations: 279 kB / 0.5619 GB, free: 15.14 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3816, allocations: 0 / 0.5619 GB, free: 15.14 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005704/0.3822, allocations: 111.8 kB / 0.562 GB, free: 15.04 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition2,$whenCondition1,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled,windFarm.disturbance.T_start,windFarm.disturbance.count) * Number of discrete states: 3 (windFarm.disturbance.count,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.00355/0.3857, allocations: 1.531 MB / 0.5635 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001084/0.3868, allocations: 479.7 kB / 0.564 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.3868, allocations: 0 / 0.564 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005198/0.3873, allocations: 219.7 kB / 0.5642 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004982/0.3878, allocations: 74.27 kB / 0.5642 GB, free: 12.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006624/0.3945, allocations: 3.971 MB / 0.5681 GB, free: 8.664 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002479/0.3947, allocations: 209.6 kB / 0.5683 GB, free: 8.441 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002779/0.395, allocations: 91.2 kB / 0.5684 GB, free: 8.352 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002591/0.3953, allocations: 135.4 kB / 0.5685 GB, free: 8.219 MB / 414.1 MB Notification: Performance of SimCode: time 2.415e-06/0.3953, allocations: 0 / 0.5685 GB, free: 8.219 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04647/0.4417, allocations: 10.27 MB / 0.5786 GB, free: 14.02 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.94, allocations: 0 / 0.5786 GB, free: 14.02 MB / 430.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.953722744248807]